html.mobile-app-shell .ios-app-download-open {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  border: 1px solid var(--mobile-app-yellow);
  border-radius: 4px;
  background: transparent;
  color: var(--mobile-app-yellow);
  font: 800 16px/1.2 inherit;
  cursor: pointer;
}
html.mobile-app-shell .ios-app-download-open:focus-visible,
html.mobile-app-shell .ios-download-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
html.mobile-app-shell .app-modal.open[data-view="ios-download"] {
  display: flex;
  z-index: 2050;
  inset: var(--site-nav-height, 58px) 0 calc(76px + var(--mobile-safe-bottom-max)) 0;
  align-items: stretch;
  padding: 0;
  background: var(--mobile-app-bg);
}
html.mobile-app-shell .app-modal[data-view="ios-download"] .modal-card {
  width: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: var(--mobile-app-bg);
  box-shadow: none;
  scrollbar-width: none;
}
html.mobile-app-shell .app-modal[data-view="ios-download"] .modal-card::-webkit-scrollbar { display: none; }
html.mobile-app-shell .app-modal[data-view="ios-download"] .modal-head { display: none; }
html.mobile-app-shell .app-modal[data-view="ios-download"] .modal-body { padding: 0; }
html.mobile-app-shell .app-modal[data-view="ios-download"] + .mobile-bottom-nav { display: grid; }
html.mobile-app-shell .app-modal[data-view="ios-download"] ~ .mobile-bottom-nav [data-mobile-tab="profile"] { color: var(--mobile-app-yellow); }

html.mobile-app-shell .ios-download-page {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 7px 12px 28px;
  color: var(--mobile-app-text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
html.mobile-app-shell .ios-download-hero { text-align: center; }
html.mobile-app-shell .ios-download-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 6.2vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
html.mobile-app-shell .ios-download-hero p {
  margin: 6px 0 0;
  color: #abb9ca;
  font-size: 14px;
  line-height: 1.5;
}
html.mobile-app-shell .ios-download-progress {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 12px 12px 12px;
  text-align: center;
}
html.mobile-app-shell .ios-progress-line {
  position: absolute;
  top: 13px;
  right: 13%;
  left: 13%;
  height: 2px;
  background: linear-gradient(90deg, var(--mobile-app-yellow) 50%, #3e4b5d 50%);
}
html.mobile-app-shell .ios-progress-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #acb9ca;
  font-size: 13px;
  font-weight: 700;
}
html.mobile-app-shell .ios-progress-item.current { color: var(--mobile-app-yellow); }
html.mobile-app-shell .ios-progress-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #4a5870;
  border-radius: 50%;
  background: #172230;
  color: #c8d7e9;
  font-size: 14px;
}
html.mobile-app-shell .ios-progress-item.current .ios-progress-number {
  border-color: var(--mobile-app-yellow);
  background: var(--mobile-app-yellow);
  color: #111318;
}
html.mobile-app-shell .ios-download-card {
  position: relative;
  border: 1px solid #263b51;
  border-radius: 10px;
  background: #111a27;
  box-shadow: inset 0 1px rgba(255,255,255,.02);
}
html.mobile-app-shell .ios-download-card-first {
  display: grid;
  min-height: 106px;
  grid-template-columns: minmax(0, 1fr) 128px;
  grid-template-rows: auto 1fr;
  column-gap: 8px;
  padding: 15px 14px;
}
html.mobile-app-shell .ios-card-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #234c7e;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
html.mobile-app-shell .ios-download-card-first .ios-card-number { position: absolute; top: 14px; left: 14px; }
html.mobile-app-shell .ios-download-card h2 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 28px;
}
html.mobile-app-shell .ios-download-card-first h2 { grid-column: 1; padding-left: 36px; }
html.mobile-app-shell .ios-download-card-first p {
  grid-column: 1;
  margin: 10px 0 0;
  color: #aebdd0;
  font-size: 12px;
  line-height: 1.45;
}
html.mobile-app-shell .ios-download-action {
  display: flex;
  min-height: 44px;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  background: var(--mobile-app-yellow);
  color: #111318;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
html.mobile-app-shell .ios-download-cta-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url('ios-icon-download-simple.svg') center / contain no-repeat;
  -webkit-mask: url('ios-icon-download-simple.svg') center / contain no-repeat;
}
html.mobile-app-shell .ios-download-action[aria-disabled="true"] {
  background: #43505e;
  color: #e0e5eb;
  cursor: not-allowed;
}
html.mobile-app-shell .ios-download-pending {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #ffd977;
  font-size: 12px;
  line-height: 1.4;
}
html.mobile-app-shell .ios-download-pending[hidden] { display: none; }
html.mobile-app-shell .ios-download-card-second { margin-top: 10px; padding: 18px 14px 17px; }
html.mobile-app-shell .ios-card-heading { display: flex; align-items: center; gap: 10px; }
html.mobile-app-shell .ios-card-intro { margin: 10px 0 24px; color: #b3c0d0; font-size: 13px; line-height: 1.5; }
html.mobile-app-shell .ios-trust-steps { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
html.mobile-app-shell .ios-trust-steps li { display: grid; grid-template-columns: 44px 25px minmax(0,1fr); gap: 8px; align-items: start; }
html.mobile-app-shell .ios-trust-icon-box {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #2a4763;
  border-radius: 8px;
  background: #17283c;
}
html.mobile-app-shell .ios-trust-icon { display: block; width: 22px; height: 22px; background: #9bcfff; }
html.mobile-app-shell .ios-trust-icon-phone { mask: url('ios-icon-device-mobile.svg') center / contain no-repeat; -webkit-mask: url('ios-icon-device-mobile.svg') center / contain no-repeat; }
html.mobile-app-shell .ios-trust-icon-gear { mask: url('ios-icon-gear.svg') center / contain no-repeat; -webkit-mask: url('ios-icon-gear.svg') center / contain no-repeat; }
html.mobile-app-shell .ios-trust-icon-file { mask: url('ios-icon-file-text.svg') center / contain no-repeat; -webkit-mask: url('ios-icon-file-text.svg') center / contain no-repeat; }
html.mobile-app-shell .ios-trust-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #223a57;
  color: #b5d8ff;
  font-size: 13px;
  font-weight: 800;
  align-self: center;
}
html.mobile-app-shell .ios-trust-steps strong { display: block; color: #fff; font-size: 13px; line-height: 1.4; }
html.mobile-app-shell .ios-trust-steps li div span { display: block; margin-top: 2px; color: #9daec3; font-size: 12px; line-height: 1.45; }
html.mobile-app-shell .ios-version-note,
html.mobile-app-shell .ios-trust-proof {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  margin: 21px 0 0;
  padding: 10px 12px;
  border: 1px solid #28435f;
  border-radius: 7px;
  background: #1a293c;
  color: #c3dbf4;
  font-size: 12px;
  line-height: 1.45;
}
html.mobile-app-shell .ios-note-icon,
html.mobile-app-shell .ios-proof-icon { display: block; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; }
html.mobile-app-shell .ios-note-icon { mask: url('ios-icon-info.svg') center / contain no-repeat; -webkit-mask: url('ios-icon-info.svg') center / contain no-repeat; }
html.mobile-app-shell .ios-proof-icon { mask: url('ios-icon-shield-check.svg') center / contain no-repeat; -webkit-mask: url('ios-icon-shield-check.svg') center / contain no-repeat; }
html.mobile-app-shell .ios-trust-proof {
  margin-top: 8px;
  border-color: #1f7045;
  background: #103325;
  color: #8df1aa;
  font-size: 13px;
}
@media (max-width: 350px) {
  html.mobile-app-shell .ios-download-page { padding-right: 9px; padding-left: 9px; }
  html.mobile-app-shell .ios-download-card-first { grid-template-columns: minmax(0, 1fr) 112px; }
  html.mobile-app-shell .ios-download-hero h1 { font-size: 21px; }
}
@media (min-width: 700px) {
  html.mobile-app-shell .app-modal[data-view="ios-download"] .modal-body { width: min(820px,100%); margin: 0 auto; }
}
