:root {
  --brand: #1769c2;
  --brand-strong: #0b4f9c;
  --brand-soft: #e8f2ff;
  --teal: #12a59b;
  --amber: #f2a20c;
  --ink: #172238;
  --muted: #667085;
  --line: #dde5ef;
  --paper: #ffffff;
  --surface: #f6f9fc;
  --surface-strong: #edf5ff;
  --danger: #c2412d;
  --ok: #15856f;
  --shadow: 0 18px 48px rgba(23, 34, 56, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.brand-link img {
  width: 38px;
  height: 38px;
}

.brand-link span {
  font-size: 19px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #39475d;
  font-weight: 700;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 105, 194, 0.22);
}

.btn-primary:hover {
  color: #fff;
  background: var(--brand-strong);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface-strong);
}

.btn-quiet {
  background: #eef6ff;
  color: var(--brand-strong);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(640px, 70vh);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 14% 20%, rgba(242, 162, 12, 0.14), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 46%, #dfefff 100%);
  color: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.88) 39%, rgba(248, 251, 255, 0.34) 67%, rgba(248, 251, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 80%, #fff 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 54px 24px 62px;
}

.hero-copy {
  max-width: 650px;
}

.hero-art {
  min-width: 0;
  transform: translateX(26px);
}

.hero-art img {
  width: min(52vw, 660px);
  max-width: none;
  margin-left: auto;
  filter: drop-shadow(0 28px 48px rgba(23, 55, 92, 0.16));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #cce6ff;
  font-size: 14px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--amber);
}

.hero .eyebrow {
  color: var(--brand-strong);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.keep {
  white-space: nowrap;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: #46566e;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: #cddceb;
  color: var(--brand-strong);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 620px;
}

.hero-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #cddceb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #334054;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 82px 24px;
}

.section-alt {
  background: var(--surface);
}

.section-tight {
  padding-top: 56px;
  padding-bottom: 56px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-title {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-desc {
  margin-bottom: 0;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #435069;
  font-size: 13px;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 24px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.35;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon-box {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
}

.icon-box.teal {
  background: var(--teal);
}

.icon-box.amber {
  background: var(--amber);
}

.icon-box.dark {
  background: var(--ink);
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

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

.scenario {
  min-height: 184px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.scenario strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.scenario p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.product-panel {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #eef7ff);
  overflow: hidden;
}

.product-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #435069;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 5px #d8f4ef;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}

.quote-card blockquote {
  margin: 0 0 20px;
  color: #334054;
}

.quote-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: var(--brand);
}

.avatar.teal {
  background: var(--teal);
}

.avatar.amber {
  background: var(--amber);
}

.quote-person strong {
  display: block;
}

.quote-person span {
  color: var(--muted);
  font-size: 13px;
}

.cta-band {
  background: #10243b;
  color: #fff;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cta-inner h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 38px);
}

.cta-inner p {
  margin-bottom: 0;
  color: #cfe0f2;
}

.page-hero {
  padding: 72px 24px 54px;
  background:
    linear-gradient(135deg, rgba(232, 242, 255, 0.95), rgba(246, 249, 252, 0.96)),
    url("../img/hero-joytokey.svg") right -80px center / 520px no-repeat;
}

.page-hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 720px;
  color: #4b5a71;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand-strong);
  font-weight: 800;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step > div {
  min-width: 0;
}

.step > div:empty {
  display: none;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  grid-column: 1;
  grid-row: 1;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.step h2,
.step h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
  overflow-wrap: normal;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 24px;
  align-items: start;
}

.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
}

.download-card h2,
.download-card h3 {
  margin-bottom: 12px;
}

.download-card .version {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 900;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.facts {
  display: grid;
  gap: 12px;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact span {
  color: var(--muted);
}

.fact strong {
  text-align: right;
}

.notice {
  border-left: 4px solid var(--amber);
  background: #fff7e6;
  color: #6b4a00;
  padding: 16px 18px;
  border-radius: var(--radius);
}

.notice.danger {
  border-left-color: var(--danger);
  background: #fff0ed;
  color: #743126;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px 24px;
}

.faq-item h2,
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.source-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 42px 24px;
  background: #0d1d31;
  color: #c8d6e6;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 26px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 900;
}

.footer-logo img {
  width: 34px;
  height: 34px;
}

.footer-grid h2,
.footer-grid h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 16px;
}

.footer-grid p,
.footer-grid li {
  color: #c8d6e6;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: #d8ebff;
}

.footer-bottom {
  max-width: var(--container);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fb1c6;
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 18, 33, 0.68);
}

.modal-backdrop.is-open {
  display: flex;
}

.download-modal {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin-bottom: 4px;
}

.modal-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.modal-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 28px 28px;
}

.qr-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.qr-card img {
  width: 172px;
  height: 172px;
  margin: 0 auto 16px;
  border: 8px solid #fff;
  border-radius: var(--radius);
  background: #fff;
}

.qr-card h3 {
  margin-bottom: 8px;
  text-align: center;
}

.qr-card p {
  min-height: 52px;
  margin-bottom: 14px;
  color: var(--muted);
  text-align: center;
}

.qr-card .btn {
  width: 100%;
}

.body-locked {
  overflow: hidden;
}

@media (max-width: 980px) {
  .nav-wrap {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .nav-actions > .btn {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 52px;
    gap: 18px;
  }

  .hero-art {
    transform: none;
  }

  .hero-art img {
    width: min(88%, 360px);
    margin: 0 auto;
  }

  .section-head,
  .feature-band,
  .download-layout,
  .cta-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .scenario-grid,
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .nav-wrap {
    padding: 0 16px;
  }

  .brand-link span {
    font-size: 17px;
  }

  .hero-content,
  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-content {
    padding-top: 40px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .scenario-grid,
  .quote-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .step::before {
    grid-column: 1;
    grid-row: auto;
  }

  .step h2 {
    font-size: 21px;
  }

  .cta-inner {
    gap: 18px;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-head,
  .qr-grid {
    padding-left: 18px;
    padding-right: 18px;
  }
}

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