:root {
  --ink: #192548;
  --muted: #4e5b76;
  --blue: #2954db;
  --blue-dark: #1c3eb6;
  --blue-soft: #ecf2ff;
  --line: #dce5fa;
  --radius: 1.125rem;
  --shadow: 0 1.25rem 3.5rem rgba(50, 77, 139, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  line-break: strict;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.22;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.14rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.wrap {
  width: min(71.25rem, calc(100% - 3.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.06rem;
  font-weight: 750;
  white-space: nowrap;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: .56rem;
}

.nav-links,
.footer-links {
  display: flex;
  gap: clamp(.85rem, 2.5vw, 1.85rem);
  font-size: .9rem;
}

.nav-links {
  margin-inline-start: auto;
  color: var(--muted);
}

.nav-links a,
.footer-links a {
  transition: color .18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

.nav-download,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  border-radius: .7rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nav-download {
  min-height: 2.25rem;
  padding: .25rem .9rem;
  border: 1px solid #bacbf6;
  color: var(--blue-dark);
  font-size: .88rem;
}

.nav-download::after {
  position: absolute;
  inset: -.25rem 0;
  content: "";
}

.nav-download:hover {
  background: var(--blue-soft);
}

.button-primary {
  min-height: 3.5rem;
  min-width: 15rem;
  padding: .65rem 1.75rem;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 .6rem 1.6rem #1e47c42b;
}

.button-primary:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
  box-shadow: 0 .8rem 1.7rem #1e47c43d;
}

.button-primary:active {
  transform: translateY(0);
}

.download-icon {
  position: relative;
  display: inline-block;
  width: 1.06rem;
  height: 1.06rem;
  border-bottom: 2px solid currentColor;
}

.download-icon::before,
.download-icon::after {
  position: absolute;
  left: 50%;
  content: "";
}

.download-icon::before {
  top: 0;
  width: 2px;
  height: .68rem;
  transform: translateX(-50%);
  background: currentColor;
}

.download-icon::after {
  top: .25rem;
  width: .47rem;
  height: .47rem;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.hero {
  padding-block: clamp(3.4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 84% 28%, #dce7ff 0, transparent 46%),
    radial-gradient(ellipse at 92% 97%, #eae4ff 0, transparent 42%),
    linear-gradient(115deg, #f7faff, #eff4ff);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  min-height: 22rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 800;
}

.hero-tagline {
  margin-top: .75rem;
  color: var(--blue-dark);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 750;
  line-height: 1.4;
}

.hero-text {
  max-width: 26rem;
  margin-top: 1rem;
  color: var(--muted);
}

.hero .button {
  margin-top: 1.75rem;
}

.app-gallery {
  min-width: 0;
  padding: 1.25rem 1.35rem 1.2rem;
  border: 1px solid #c8d7f7;
  border-radius: 1.5rem;
  background: #ffffff88;
  box-shadow: var(--shadow);
}

.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.gallery-heading h2 {
  font-size: 1.15rem;
}

.gallery-controls {
  display: flex;
  gap: .35rem;
}

.gallery-controls[hidden] {
  display: none;
}

.gallery-arrow {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  border: 1px solid #c9d6f3;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
}

.gallery-arrow::before {
  width: .46rem;
  height: .46rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-1px) rotate(45deg);
  content: "";
}

.gallery-arrow.previous::before {
  transform: translateX(1px) rotate(-135deg);
}

.gallery-arrow:hover:not(:disabled) {
  background: var(--blue-soft);
}

.gallery-arrow:disabled {
  opacity: .38;
  cursor: default;
}

.screen-track {
  --screen-height: clamp(13rem, 20.5vw, 18.25rem);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: .45rem;
  scrollbar-width: thin;
  scrollbar-color: #9aafe6 transparent;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.screen-shot {
  display: block;
  flex: 0 0 auto;
  border: 1px solid #bac8ed;
  border-radius: .85rem;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: border-color .18s ease;
}

.screen-shot:hover {
  border-color: var(--blue);
}

.screen-shot:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px #fff;
  border-color: var(--blue);
}

.screen-shot:focus-visible img {
  opacity: .84;
}

.screen-shot img {
  display: block;
  width: auto;
  height: var(--screen-height);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.lightbox {
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: .75rem;
  border: 1px solid #454d68;
  border-radius: 1rem;
  background: #172039;
  color: #fff;
}

.lightbox::backdrop {
  background: #0a1226db;
}

.lightbox-inner {
  display: grid;
  justify-items: end;
  gap: .6rem;
}

.lightbox-close {
  min-height: 2.65rem;
  padding: .3rem .9rem;
  border: 1px solid #6d7c9e;
  border-radius: .6rem;
  background: #293756;
  color: #fff;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline-color: #d4e2ff;
}

.lightbox img {
  display: block;
  max-width: min(31rem, calc(100vw - 3.2rem));
  max-height: calc(100dvh - 6.75rem);
  width: auto;
  height: auto;
  border-radius: .45rem;
}

.section,
.guide-section {
  padding-block: clamp(3.1rem, 6.8vw, 5.4rem);
}

.section-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.45rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #a9bef5;
  background: #f9fbff;
  box-shadow: 0 .7rem 1.9rem #274db015;
}

.feature-card h3,
.privacy-note h3 {
  margin-block: .92rem .42rem;
}

.feature-card p,
.privacy-note p,
.guide-section p,
.faq-list p {
  color: var(--muted);
}

.feature-icon {
  position: relative;
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border-radius: .8rem;
  background: #eaf1ff;
  color: var(--blue);
}

.feature-icon::before {
  width: 1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  content: "";
}

.shield-icon::before {
  border-radius: .27rem .27rem .65rem .65rem;
}

.shield-icon::after {
  position: absolute;
  width: .5rem;
  height: .24rem;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
  content: "";
}

.private-icon {
  background: #f0eafd;
  color: #6c47b7;
}

.private-icon::before {
  width: 1.25rem;
  height: .68rem;
  border-radius: 80% 30%;
  transform: rotate(14deg);
}

.private-icon::after {
  position: absolute;
  width: 1.36rem;
  height: 2px;
  border-radius: 2px;
  transform: rotate(-40deg);
  background: currentColor;
  box-shadow: 0 -2px 0 #f0eafd;
  content: "";
}

.tabs-icon::before,
.tabs-icon::after {
  width: .87rem;
  height: .87rem;
  border: 2px solid currentColor;
  border-radius: .2rem;
  content: "";
}

.tabs-icon::before {
  transform: translate(-.14rem, .13rem);
  background: #eaf1ff;
  z-index: 1;
}

.tabs-icon::after {
  position: absolute;
  transform: translate(.16rem, -.15rem);
}

.bookmark-icon {
  background: #e5f5f4;
  color: #13716d;
}

.bookmark-icon::before {
  width: .9rem;
  height: 1.22rem;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.guide-section {
  background: #f5f8ff;
  border-block: 1px solid var(--line);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 6vw, 5.5rem);
  align-items: center;
}

.guide-intro {
  margin-top: .6rem;
}

.steps {
  padding: 0;
  margin-top: 1.25rem;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1rem 0 1rem 3.15rem;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: .91rem;
  left: 0;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50%;
  background: #e6edff;
  color: var(--blue-dark);
  font-weight: 750;
  content: counter(step);
}

.steps p {
  margin-top: .38rem;
}

.privacy-note {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid #d9d6f6;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fcfbff, #eeedff);
}

.faq-list {
  max-width: 52rem;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.08rem .2rem;
  list-style: none;
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  flex: 0 0 auto;
  width: .51rem;
  height: .51rem;
  margin-inline-end: .35rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-2px) rotate(45deg);
  content: "";
}

.faq-list details[open] summary {
  color: var(--blue-dark);
}

.faq-list details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq-list p {
  padding: 0 2rem 1.1rem .2rem;
}

.menu-label {
  white-space: nowrap;
}

.download-section {
  padding-block: clamp(2.7rem, 5.3vw, 4.25rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 50%, #dbe7ff, transparent 70%),
    #eef4ff;
}

.download-box,
.download-brand {
  display: flex;
  align-items: center;
}

.download-box {
  justify-content: space-between;
  gap: 1.5rem;
}

.download-brand {
  gap: 1.2rem;
}

.download-brand img {
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 1rem;
}

.download-box .button {
  min-width: 15rem;
}

.site-footer {
  background: #172346;
  color: #edf2ff;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-block: 2.3rem 2rem;
  text-align: center;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: center;
  color: #dbe5fd;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #a7c5ff;
}

.footer-inner p {
  color: #b3c0dc;
  font-size: .85rem;
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 6.65rem;
  }

  .wrap {
    width: min(38.5rem, calc(100% - 2.25rem));
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .2rem .65rem;
    padding-top: .6rem;
  }

  .nav-links {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: .45rem;
    margin-inline-start: 0;
    font-size: .87rem;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.7rem;
    white-space: nowrap;
  }

  .hero {
    padding-block: 2.1rem 2.25rem;
  }

  .hero-grid,
  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 1.8rem;
    min-height: 0;
  }

  .hero-text {
    max-width: none;
    margin-top: .8rem;
  }

  .hero .button {
    margin-top: 1.15rem;
  }

  .button-primary {
    width: 100%;
    min-width: 0;
  }

  .app-gallery {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .screen-track {
    --screen-height: clamp(12rem, 66vw, 18.25rem);
    gap: .6rem;
  }

  .screen-shot {
    border-radius: .7rem;
  }

  .download-box {
    flex-direction: column;
    align-items: stretch;
  }

  .download-brand {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card {
    padding: 1.12rem;
  }

  .download-brand {
    gap: .7rem;
  }

  .download-brand img {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: .75rem;
  }

  .download-brand h2 {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
