:root {
  --iphone-black: #111113;
  --iphone-cream: #f5efe3;
  --iphone-mist: #e9e4f0;
  --iphone-mint: #7be0b5;
  --iphone-muted: #6f6b75;
  --iphone-card: #fffaf0;
  --iphone-line: rgba(17, 17, 19, 0.12);
  --iphone-shadow: 0 26px 70px rgba(17, 17, 19, 0.16);
}

* { box-sizing: border-box; }

body.iphone-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 82px;
  font-family: Georgia, "Microsoft YaHei", serif;
  color: var(--iphone-black);
  background:
    radial-gradient(circle at 12% 14%, rgba(123, 224, 181, 0.28), transparent 18rem),
    radial-gradient(circle at 88% 18%, rgba(184, 174, 203, 0.34), transparent 22rem),
    linear-gradient(180deg, #f5efe3 0%, #fbf8f1 58%, #ece7f2 100%);
}

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

.iphone-header {
  width: min(1160px, calc(100% - 30px));
  margin: 18px auto 0;
  position: sticky;
  top: 14px;
  z-index: 20;
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--iphone-line);
  background: rgba(17, 17, 19, 0.94);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--iphone-shadow);
  backdrop-filter: blur(16px);
}
.iphone-brand { display: flex; align-items: baseline; gap: 10px; }
.iphone-brand b { font-size: 18px; }
.iphone-brand span { color: #c9c2d4; font-size: 13px; letter-spacing: 0.06em; }
.iphone-nav { display: flex; gap: 8px; align-items: center; }
.iphone-nav a { padding: 10px 14px; border-radius: 999px; color: #eee8f4; font-weight: 800; }
.iphone-nav a:hover { background: rgba(255,255,255,0.1); }
.iphone-nav .iphone-nav-cta { background: var(--iphone-mint); color: #101312; }
.iphone-menu { display: none; border: 0; width: 44px; height: 40px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.iphone-menu span { display: block; width: 18px; height: 2px; margin: 5px auto; border-radius: 999px; background: #fff; }

.iphone-hero {
  width: min(1160px, calc(100% - 30px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
}
.iphone-copy,
.iphone-safari-stage,
.iphone-section,
.iphone-final,
.iphone-footer {
  border: 1px solid var(--iphone-line);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--iphone-shadow);
}
.iphone-copy {
  min-height: 610px;
  border-radius: 42px 42px 18px 42px;
  padding: 58px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.iphone-kicker,
.iphone-safari-tip p,
.iphone-section-title p,
.iphone-change p:first-child,
.iphone-final p {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  color: #3f8f75;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.iphone-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}
.iphone-copy h1 span {
  display: block;
  white-space: nowrap;
}
.iphone-lead,
.iphone-hint,
.iphone-split p,
.iphone-step-ribbon span,
.iphone-change p,
.iphone-trouble p,
.iphone-faq-list p,
.iphone-footer p {
  color: var(--iphone-muted);
  line-height: 1.8;
}
.iphone-lead { margin: 24px 0 0; font-size: 18px; }
.iphone-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.iphone-main-cta,
.iphone-alt-cta,
.iphone-download-sheet a,
.iphone-safari-tip a,
.iphone-large-route a,
.iphone-ipad-note a,
.iphone-change a,
.iphone-final-actions a,
.iphone-footer a,
.iphone-fixed a {
  min-height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.iphone-main-cta { padding: 0 24px; background: var(--iphone-black); color: #fff; }
.iphone-alt-cta { padding: 0 22px; background: #fff; border: 1px solid var(--iphone-line); }
.iphone-hint { margin: 24px 0 0; padding: 14px 18px; border-radius: 18px; background: rgba(123,224,181,0.16); }

.iphone-safari-stage {
  border-radius: 18px 42px 42px 42px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(17,17,19,0.96), rgba(39,36,46,0.94));
  color: #fff;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}
.iphone-browser {
  border-radius: 34px;
  padding: 18px;
  background: #f8f2e7;
  color: var(--iphone-black);
  position: relative;
  overflow: hidden;
}
.iphone-browser::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -110px;
  bottom: -120px;
  background: rgba(123,224,181,0.24);
}
.iphone-browser-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #171719;
  color: #fff;
}
.iphone-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bfb5ce;
}
.iphone-browser-bar span:first-child { background: var(--iphone-mint); }
.iphone-browser-bar strong { margin-left: auto; font-size: 13px; color: #dcd5e7; }
.iphone-address {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4f4b56;
}
.iphone-address i {
  width: 13px;
  height: 17px;
  border-radius: 8px 8px 4px 4px;
  border: 2px solid #837993;
  display: inline-block;
}
.iphone-download-sheet {
  min-height: 340px;
  border-radius: 28px;
  padding: 32px;
  background: linear-gradient(180deg, #fff, #f1ebfa);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.iphone-download-sheet h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.06em; }
.iphone-download-sheet span { color: var(--iphone-muted); line-height: 1.75; }
.iphone-download-sheet a { width: max-content; margin-top: 22px; padding: 0 22px; background: var(--iphone-black); color: #fff; }
.iphone-device-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.iphone-device-tabs button {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  min-height: 46px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.iphone-device-tabs button.is-active { background: var(--iphone-mint); color: #111; }

.iphone-section,
.iphone-final,
.iphone-footer {
  width: min(1160px, calc(100% - 30px));
  margin: 24px auto 0;
  border-radius: 34px;
  padding: 34px;
}
.iphone-safari-tip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #fffaf0, #e7f8f1);
}
.iphone-section h2,
.iphone-final h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.05em; }
.iphone-safari-tip a { flex: 0 0 auto; padding: 0 22px; background: var(--iphone-black); color: #fff; }

.iphone-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; background: transparent; box-shadow: none; border: 0; padding: 0; }
.iphone-large-route,
.iphone-ipad-note {
  border: 1px solid var(--iphone-line);
  background: rgba(255,250,240,0.9);
  box-shadow: var(--iphone-shadow);
  border-radius: 34px;
  padding: 34px;
}
.iphone-large-route { min-height: 340px; background: #111113; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.iphone-large-route span { width: max-content; padding: 8px 12px; border-radius: 999px; background: rgba(123,224,181,0.18); color: var(--iphone-mint); font-weight: 900; }
.iphone-large-route p { color: #ddd7e6; }
.iphone-large-route a { width: max-content; margin-top: 12px; padding: 0 22px; background: var(--iphone-mint); color: #111; }
.iphone-ipad-note a { padding: 0 22px; background: #fff; border: 1px solid var(--iphone-line); }

.iphone-step-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.iphone-step-ribbon article {
  min-height: 220px;
  border-radius: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--iphone-line);
}
.iphone-step-ribbon b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--iphone-mist);
  margin-bottom: 34px;
}
.iphone-step-ribbon strong { display: block; font-size: 21px; margin-bottom: 8px; }
.iphone-step-ribbon span { display: block; }

.iphone-change {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
}
.iphone-change-visual {
  min-height: 260px;
  border-radius: 32px;
  background: var(--iphone-black);
  padding: 26px;
  display: grid;
  gap: 14px;
}
.iphone-change-visual span {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--iphone-mint), rgba(255,255,255,0.18));
}
.iphone-change-visual span:nth-child(1) { width: 82%; }
.iphone-change-visual span:nth-child(2) { width: 58%; }
.iphone-change-visual span:nth-child(3) { width: 72%; }
.iphone-change a { padding: 0 22px; background: var(--iphone-black); color: #fff; }

.iphone-trouble { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.iphone-trouble article,
.iphone-faq-list details {
  border: 1px solid var(--iphone-line);
  background: #fffaf0;
  border-radius: 28px;
  padding: 26px;
}
.iphone-trouble h2 { font-size: 25px; }
.iphone-faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.iphone-faq-list summary { cursor: pointer; font-weight: 900; }

.iphone-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #111113, #2e2936);
  color: #fff;
}
.iphone-final p { color: var(--iphone-mint); }
.iphone-final-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.iphone-final-actions a { padding: 0 22px; background: var(--iphone-mint); color: #111; }
.iphone-final-actions a:last-child { background: #fff; }

.iphone-footer {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fffaf0;
}
.iphone-footer strong { font-size: 20px; }
.iphone-footer p { margin: 8px 0 0; }
.iphone-footer a { padding: 0 22px; background: var(--iphone-black); color: #fff; }

.iphone-fixed {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  transform: translateX(-50%);
  width: min(430px, calc(100vw - 28px));
  min-height: 58px;
  padding: 8px 9px 8px 18px;
  border-radius: 999px;
  display: none;
  justify-content: space-between;
  align-items: center;
  background: rgba(17,17,19,0.94);
  color: #fff;
  box-shadow: 0 20px 50px rgba(17,17,19,0.26);
}
.iphone-fixed span { font-weight: 900; }
.iphone-fixed a { min-height: 42px; padding: 0 20px; background: var(--iphone-mint); color: #111; }

@media (max-width: 940px) {
  .iphone-menu { display: block; }
  .iphone-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px;
    border-radius: 24px;
    background: var(--iphone-black);
    flex-direction: column;
    align-items: stretch;
  }
  .iphone-header.is-open .iphone-nav { display: flex; }
  .iphone-nav a { text-align: center; }
  .iphone-hero,
  .iphone-split,
  .iphone-step-ribbon,
  .iphone-change,
  .iphone-trouble,
  .iphone-faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .iphone-header,
  .iphone-hero,
  .iphone-section,
  .iphone-final,
  .iphone-footer {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
  .iphone-brand span { display: none; }
  .iphone-copy,
  .iphone-safari-stage,
  .iphone-section,
  .iphone-final,
  .iphone-footer {
    border-radius: 26px;
    padding: 24px;
    overflow: hidden;
  }
  .iphone-copy { min-height: auto; padding-top: 42px; padding-bottom: 42px; }
  .iphone-copy h1 { font-size: clamp(38px, 13vw, 54px); }
  .iphone-lead,
  .iphone-hint,
  .iphone-split p,
  .iphone-trouble p,
  .iphone-faq-list p { overflow-wrap: anywhere; }
  .iphone-actions,
  .iphone-safari-tip,
  .iphone-final,
  .iphone-footer { flex-direction: column; align-items: stretch; }
  .iphone-main-cta,
  .iphone-alt-cta,
  .iphone-safari-tip a,
  .iphone-final-actions a,
  .iphone-footer a { width: 100%; }
  .iphone-download-sheet { min-height: 290px; padding: 24px; }
  .iphone-device-tabs { grid-template-columns: 1fr; }
  .iphone-step-ribbon article { min-height: auto; }
  .iphone-footer { grid-template-columns: 1fr; }
  .iphone-fixed { display: flex; }
}
