:root {
  color-scheme: light;
  --page: #f4f7fc;
  --surface: #fff;
  --ink: #172640;
  --muted: #51637c;
  --line: #dfe8f4;
  --blue: #235bd9;
  --blue-hover: #1947b5;
  --blue-soft: #eaf1ff;
  --green: #247753;
  --green-soft: #e7f6ee;
  --shadow: 0 8px 26px rgb(45 83 133 / 5%);
  --radius: 18px;
  --gutter: 32px;
  --header-height: 68px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.6;
  background: var(--page);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

:where(main, section, .guide-anchor)[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.shell {
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: var(--gutter);
  z-index: 10;
  translate: 0 -180%;
  border-radius: 9px;
  padding: 9px 14px;
  background: var(--surface);
  color: var(--blue);
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.header-inner {
  display: flex;
  min-height: calc(var(--header-height) - 1px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, #5388fd, #164cce);
  box-shadow: 0 3px 10px rgb(35 91 217 / 19%);
}

.brand-mark::before, .brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  inset: 9px 7px 13px;
  clip-path: polygon(0 100%, 23% 58%, 37% 67%, 66% 0, 100% 100%);
  background: #fff;
}

.brand-mark::after {
  inset: auto 7px 8px;
  height: 4px;
  border-radius: 50%;
  border-bottom: 2px solid #c5dcff;
  rotate: -6deg;
}

.main-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: clamp(18px, 3vw, 38px);
}

.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 640;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a[aria-current] {
  color: var(--blue);
}

.main-nav a[aria-current]::after {
  position: absolute;
  right: 15%;
  bottom: -1px;
  left: 15%;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
  content: "";
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #dce6f5;
  background: linear-gradient(110deg, #f0f5ff 0%, #eaf3ff 48%, #d9e9fc 100%);
}

.hero-image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(65%, 1230px);
  height: 100%;
  object-fit: cover;
  object-position: 64% 51%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%);
  mask-image: linear-gradient(90deg, transparent, #000 48%);
  opacity: .93;
}

.hero-inner {
  display: flex;
  min-height: 344px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 48px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.95rem, 5.4vw, 4.25rem);
  font-weight: 820;
  letter-spacing: -.06em;
  line-height: 1.12;
}

.hero h1 span {
  color: var(--blue);
}

.hero-summary {
  max-width: 28rem;
  margin: 20px 0 26px;
  color: #405670;
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  font-weight: 520;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:not(:disabled):hover {
  background: var(--blue-hover);
}

.button-primary:disabled {
  border-color: #e8edf5;
  background: #eef2f8;
  color: #526681;
}

.button-outline {
  border-color: #d0def5;
  background: rgb(255 255 255 / 90%);
  color: var(--blue);
}

.button-outline:hover, .button-soft:hover {
  background: #dce8ff;
}

.button-soft {
  background: var(--blue-soft);
  color: var(--blue);
}

.icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.icon-package {
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.icon-package::after {
  position: absolute;
  inset: 0 auto auto 50%;
  width: 5px;
  height: 7px;
  transform: translateX(-50%);
  border: solid currentColor;
  border-width: 0 1px 1px;
  border-radius: 0 0 1px 1px;
  content: "";
}

.icon-certificate {
  width: 15px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.icon-certificate::before {
  position: absolute;
  inset: 4px 3px auto;
  height: 1px;
  box-shadow: 0 3px currentColor;
  background: currentColor;
  content: "";
}

.icon-certificate::after {
  position: absolute;
  right: 1px;
  bottom: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--blue-soft);
  content: "";
}

.content {
  padding-block: 34px 65px;
}

.section + .section {
  margin-top: 39px;
}

.section-heading {
  margin-bottom: 17px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.package-card, .guide-card, .guide-aside, .usage-card, .faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.package-card {
  min-width: 0;
  padding: clamp(17px, 2.8vw, 24px);
}

.package-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.platform-icon {
  display: grid;
  flex: 0 0 51px;
  width: 51px;
  height: 51px;
  place-items: center;
  border-radius: 14px;
}

.platform-android {
  background: var(--green-soft);
  color: var(--green);
}

.platform-ios {
  background: var(--blue-soft);
  color: var(--blue);
}

.android-mark {
  position: relative;
  width: 28px;
  height: 16px;
  margin-top: 4px;
  border-radius: 18px 18px 4px 4px;
  background: radial-gradient(circle at 30% 60%, white 1px, transparent 1.6px),
    radial-gradient(circle at 70% 60%, white 1px, transparent 1.6px), currentColor;
}

.android-mark::before, .android-mark::after {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.android-mark::before {
  left: 5px;
  rotate: -30deg;
}

.android-mark::after {
  right: 5px;
  rotate: 30deg;
}

.phone-mark {
  position: relative;
  width: 17px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.phone-mark::after {
  position: absolute;
  right: 4px;
  bottom: 2px;
  left: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.package-title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 760;
  line-height: 1.35;
}

.package-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .875rem;
}

.status {
  align-self: flex-start;
  margin-left: auto;
  border-radius: 999px;
  padding: 4px 10px;
  background: #edf2fa;
  color: #506580;
  font-size: .875rem;
  line-height: 1.45;
  white-space: nowrap;
}

.package-available .status {
  background: var(--green-soft);
  color: var(--green);
}

.package-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 19px 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  overflow-wrap: anywhere;
}

.package-meta dt {
  color: var(--muted);
  font-size: .875rem;
}

.package-meta dd {
  margin: 3px 0 0;
  font-size: .9375rem;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
}

.package-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, .58fr);
  gap: 10px;
}

.package-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .875rem;
}

.package-note a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.guide-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.guide-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eaf0f9;
}

.guide-nav a {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 5px 13px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.guide-nav a:hover, .guide-nav a[aria-current] {
  color: var(--blue);
}

.guide-nav a[aria-current] {
  background: var(--surface);
  box-shadow: 0 2px 5px rgb(21 58 100 / 7%);
}

.guide-content {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}

.guide-anchor {
  display: block;
}

/* Both fragments point to the heading so the browser only scrolls once. */
#ios-guide:target ~ [data-guide-panel="android"],
#android-guide:target ~ [data-guide-panel="ios"],
#guide:not([data-active-guide="android"]) #ios-guide:not(:target) + #android-guide:not(:target) ~ [data-guide-panel="android"],
#guide[data-active-guide="android"] #ios-guide:not(:target) + #android-guide:not(:target) ~ [data-guide-panel="ios"] {
  display: none;
}

.guide-card, .guide-aside, .usage-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 25px);
}

.guide-card h3, .guide-aside h3, .usage-card h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.4;
}

.steps {
  display: grid;
  gap: 17px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: instruction;
}

.steps > li {
  position: relative;
  padding-left: 43px;
  counter-increment: instruction;
}

.step-number::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .875rem;
  font-weight: 740;
  content: counter(instruction);
}

.steps h4 {
  margin: 2px 0 4px;
  font-size: 1rem;
  line-height: 1.45;
}

.steps p, .guide-aside p, .usage-card p, .usage-card li, .faq-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.steps code {
  border-radius: 4px;
  padding: 2px 4px;
  background: var(--blue-soft);
  color: #234790;
  font-size: .85em;
}

.guide-aside {
  background: linear-gradient(160deg, #f0f6ff, #fff 79%);
}

.aside-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.aside-icon-green {
  background: var(--green-soft);
  color: var(--green);
}

.guide-aside p, .usage-card p {
  margin-top: 9px;
}

.guide-video {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin-top: 16px;
}

.source-links a {
  color: var(--blue);
  font-size: .875rem;
  font-weight: 670;
  text-underline-offset: 3px;
}

.usage-card {
  margin-top: 14px;
}

.usage-card ol {
  margin: 10px 0 0;
  padding-left: 1.45rem;
}

.faq-list {
  overflow: hidden;
}

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

.faq-list summary {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px clamp(17px, 3vw, 24px);
  cursor: pointer;
  font-weight: 680;
  list-style: none;
}

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

.faq-list summary::after {
  flex: 0 0 22px;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 560;
  text-align: center;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:focus-visible {
  outline-offset: -4px;
}

.faq-list p {
  max-width: 51rem;
  padding: 0 clamp(17px, 3vw, 24px) 17px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  min-height: 73px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-inner .brand, .footer-inner > a {
  color: var(--muted);
  font-size: .875rem;
}

.footer-inner .brand-mark {
  scale: .72;
}

.footer-inner > a {
  text-underline-offset: 3px;
}

@media (max-width: 780px) {
  :root {
    --gutter: 20px;
    --header-height: 63px;
  }

  .hero-inner {
    min-height: 295px;
  }

  .guide-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --header-height: 60px;
    --radius: 15px;
  }

  .header-inner {
    gap: 11px;
  }

  .header-inner .brand {
    gap: 7px;
    font-size: 1rem;
  }

  .header-inner .brand-mark {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .main-nav {
    gap: clamp(8px, 2.7vw, 16px);
  }

  .main-nav a {
    font-size: .8125rem;
  }

  .hero-image {
    width: 100%;
    object-position: 70% 49%;
    -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 94%);
    mask-image: linear-gradient(90deg, transparent 4%, #000 94%);
    opacity: .47;
  }

  .hero-inner {
    min-height: 271px;
    padding-block: 37px;
  }

  .hero-summary {
    max-width: 19rem;
    margin-block: 13px 20px;
    color: #263e5d;
  }

  .hero-actions {
    gap: 8px;
  }

  .content {
    padding-block: 27px 42px;
  }

  .section + .section {
    margin-top: 29px;
  }

  .package-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .guide-heading {
    flex-wrap: wrap;
  }
}

@media (max-width: 355px) {
  .main-nav a {
    font-size: .75rem;
  }

  .header-inner .brand {
    font-size: .9375rem;
  }

  .package-actions .button {
    padding-inline: 8px;
  }
}
