body.page-ios {
  --ios-accent: #0a84ff;
  --ios-ink: #0f172a;
  --ios-muted: #5f6e7f;
  --ios-border: #d7e6f5;
  --ios-surface: rgba(255, 255, 255, 0.95);
}

body.page-ios {
  background:
    radial-gradient(circle at top left, rgba(10, 132, 255, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 36%);
}

body.page-ios .app-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 300px;
  z-index: 30;
  margin: 0;
  padding: 18px 40px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.84) 72%, rgba(248, 251, 255, 0) 100%);
  backdrop-filter: blur(18px);
}

body.page-ios .app-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #596778;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

body.page-ios .app-nav a:hover,
body.page-ios .app-nav a.active {
  color: var(--ios-accent);
  border-bottom: none;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

body.page-ios .sidebar {
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(243, 248, 252, 0.94) 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

body.page-ios .sidebar > h1 {
  margin: 0 24px 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.page-ios .sidebar .search {
  padding: 18px 20px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 18px;
}

body.page-ios .sidebar .search input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ios-ink);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

body.page-ios .sidebar .sidebar-nav {
  padding: 0 16px 40px;
}

body.page-ios .sidebar ul {
  margin-left: 0;
}

body.page-ios .sidebar li {
  margin: 3px 0;
}

body.page-ios .sidebar ul li a {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  white-space: normal;
  line-height: 1.5;
}

body.page-ios .sidebar ul li.active > a {
  border-right: none;
  background: rgba(10, 132, 255, 0.08);
  color: var(--ios-accent);
}

body.page-ios .content {
  left: 300px;
  padding-top: 84px;
  background:
    radial-gradient(circle at top right, rgba(10, 132, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 36%);
}

body.page-ios .markdown-section {
  max-width: 1120px;
  padding: 34px 24px 88px;
}

body.page-ios .markdown-section > h1 {
  margin: 0 0 24px;
  color: var(--ios-ink);
  font-size: clamp(2.35rem, 4vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

body.page-ios .ios-guide {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.page-ios .ios-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
  padding: 34px;
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(242, 248, 255, 0.9) 100%);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

body.page-ios .ios-hero::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.12);
  filter: blur(12px);
}

body.page-ios .ios-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.12);
  filter: blur(14px);
}

body.page-ios .ios-hero-copy,
body.page-ios .ios-hero-panel {
  position: relative;
  z-index: 1;
}

body.page-ios .ios-eyebrow,
body.page-ios .ios-section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--ios-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-ios .ios-hero h2 {
  margin: 18px 0 14px;
  color: var(--ios-ink);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

body.page-ios .ios-hero p,
body.page-ios .ios-install-card p,
body.page-ios .ios-install-card span,
body.page-ios .ios-phone-card span,
body.page-ios .ios-upgrade-card span {
  color: var(--ios-muted);
}

body.page-ios .ios-hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
}

body.page-ios .ios-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

body.page-ios .ios-hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: #36597a;
  font-size: 14px;
  font-weight: 600;
}

body.page-ios .ios-hero-panel {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(145deg, #0f172a 0%, #0c4a6e 100%);
  color: #fff;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}

body.page-ios .ios-hero-panel strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
}

body.page-ios .ios-hero-panel ol {
  margin: 0;
  padding-left: 20px;
}

body.page-ios .ios-hero-panel li {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

body.page-ios .ios-section {
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--ios-border);
  background: var(--ios-surface);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

body.page-ios .ios-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 20px;
}

body.page-ios .ios-section-head h2 {
  margin: 10px 0 0;
  color: var(--ios-ink);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

body.page-ios .ios-section-head p {
  max-width: 640px;
  margin: 0;
  color: var(--ios-muted);
  line-height: 1.8;
}

body.page-ios .ios-install-grid,
body.page-ios .ios-phone-grid {
  display: grid;
  gap: 18px;
}

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

body.page-ios .ios-phone-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.page-ios .ios-install-card,
body.page-ios .ios-phone-card,
body.page-ios .ios-upgrade-card,
body.page-ios .ios-stage {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 24px;
}

body.page-ios .ios-install-card,
body.page-ios .ios-upgrade-card {
  padding: 24px;
}

body.page-ios .ios-install-card strong,
body.page-ios .ios-stage-head strong,
body.page-ios .ios-phone-card strong,
body.page-ios .ios-upgrade-card strong {
  color: var(--ios-ink);
}

body.page-ios .ios-install-card strong,
body.page-ios .ios-upgrade-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

body.page-ios .ios-install-card img {
  display: block;
  width: min(100%, 220px);
  margin: 16px auto 14px;
}

body.page-ios .ios-install-card-qr {
  text-align: center;
}

body.page-ios .ios-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ios-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

body.page-ios .ios-download-link:hover {
  text-decoration: none;
  opacity: 0.92;
}

body.page-ios .ios-install-note {
  margin-top: 14px;
  line-height: 1.8;
}

body.page-ios .ios-video-shell {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

body.page-ios .ios-video-shell iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
}

body.page-ios .ios-stage {
  padding: 24px;
  margin-top: 20px;
}

body.page-ios .ios-stage:first-of-type {
  margin-top: 0;
}

body.page-ios .ios-stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

body.page-ios .ios-stage-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--ios-accent);
  font-size: 13px;
}

body.page-ios .ios-stage-head span {
  color: var(--ios-ink);
  font-size: 20px;
  font-weight: 700;
}

body.page-ios .ios-phone-card {
  padding: 20px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

body.page-ios .ios-phone-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

body.page-ios .ios-phone-card span {
  display: block;
  margin-bottom: 14px;
  line-height: 1.75;
}

body.page-ios .ios-phone-card img {
  display: block;
  width: min(100%, 280px);
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.page-ios .ios-upgrade-card {
  text-align: center;
}

@media screen and (max-width: 1080px) {
  body.page-ios .ios-hero,
  body.page-ios .ios-install-grid,
  body.page-ios .ios-phone-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  body.page-ios .app-nav {
    left: 0;
    padding: 14px 14px 0 56px;
    gap: 8px;
  }

  body.page-ios .content {
    padding-top: 78px;
  }

  body.page-ios .markdown-section {
    max-width: 100%;
    padding: 24px 16px 64px;
  }

  body.page-ios .ios-hero,
  body.page-ios .ios-section,
  body.page-ios .ios-install-card,
  body.page-ios .ios-upgrade-card,
  body.page-ios .ios-stage,
  body.page-ios .ios-phone-card {
    padding: 22px;
    border-radius: 24px;
  }

  body.page-ios .ios-section-head {
    display: block;
  }

  body.page-ios .ios-video-shell iframe {
    min-height: 240px;
  }

  body.page-ios .sidebar > h1 {
    margin: 0 20px 12px;
    padding-bottom: 14px;
    font-size: 1.8rem;
  }

  body.page-ios .sidebar .search {
    padding: 16px 16px 0;
  }

  body.page-ios .sidebar .sidebar-nav {
    padding: 0 12px 36px;
  }
}
