/* iOS 保存到桌面 — 高保真 Safari 示意 + 引导层 */

.ios-guide-modal__panel {
  width: min(400px, 94vw);
}

.ios-guide-cta {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.ios-guide-cta__btn {
  min-height: 48px;
  font-size: 16px;
  box-shadow: 0 10px 28px rgba(11, 84, 255, 0.35);
}

.ios-guide-cta__hint {
  margin: 0;
  font-size: 12px;
  color: #6b7f9a;
  text-align: center;
  line-height: 1.5;
}

/* iPhone 机身框 */
.iphone-mock {
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  border-radius: 28px;
  padding: 10px 8px 12px;
  background: linear-gradient(145deg, #2a2a2e, #0f0f12);
  box-shadow:
    0 0 0 2px #3a3a40,
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.iphone-mock__screen {
  border-radius: 22px;
  overflow: hidden;
  background: #f2f2f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.iphone-mock__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #000;
  background: #f2f2f7;
}

.iphone-mock__island {
  width: 72px;
  height: 18px;
  margin: 0 auto 4px;
  background: #000;
  border-radius: 999px;
}

.iphone-mock__safari-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #f2f2f7;
  border-bottom: 1px solid #d1d1d6;
}

.iphone-mock__safari-bar .url {
  flex: 1;
  padding: 6px 10px;
  font-size: 11px;
  color: #3c3c43;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iphone-mock__content {
  min-height: 100px;
  padding: 12px;
  background: linear-gradient(180deg, #fff 0%, #eef4ff 100%);
}

.iphone-mock__content--mini {
  min-height: 72px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #5a6f94;
}

.iphone-mock__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 8px 14px;
  background: #f9f9f9;
  border-top: 1px solid #d1d1d6;
}

.iphone-mock__tool {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #e5e5ea;
  opacity: 0.7;
}

.iphone-mock__share {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #007aff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.35);
  animation: ios-share-pulse 1.4s ease-in-out infinite;
}

.iphone-mock__share svg {
  display: block;
}

@keyframes ios-share-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(0, 122, 255, 0.2);
  }
}

/* 分享菜单 */
.iphone-mock__sheet {
  background: #f2f2f7;
  padding: 8px 10px 12px;
}

.iphone-mock__sheet-grab {
  width: 36px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 99px;
  background: #c7c7cc;
}

.iphone-mock__sheet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1c1c1e;
}

.iphone-mock__sheet-row--active {
  background: #eef4ff;
  box-shadow: inset 0 0 0 2px #0b54ff;
}

.iphone-mock__sheet-row .ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1a6bff, #0b54ff);
  flex-shrink: 0;
}

.iphone-mock__sheet-row .ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

/* 桌面 */
.iphone-mock__home {
  padding: 16px 12px;
  background: linear-gradient(180deg, #5b8fd9 0%, #9ec5f0 40%, #e8c4a8 100%);
  min-height: 140px;
}

.iphone-mock__home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
  padding-top: 8px;
}

.iphone-mock__app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.iphone-mock__app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.iphone-mock__app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone-mock__app-icon--highlight {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0b54ff;
  animation: ios-share-pulse 1.4s ease-in-out infinite;
}

.iphone-mock__app span {
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: 64px;
  line-height: 1.2;
}

.ios-guide-step {
  margin-bottom: 14px;
}

.ios-guide-step figcaption {
  margin-top: 10px;
}

/* Safari 底部引导条（点击一键保存后） */
.ios-safari-coach {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 122;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 24%, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.ios-safari-coach[hidden] {
  display: none;
}

.ios-safari-coach__inner {
  pointer-events: auto;
  max-width: 400px;
  margin: 0 auto;
  padding: 14px 16px;
  text-align: center;
  color: #fff;
  background: rgba(11, 84, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ios-safari-coach__arrow {
  width: 0;
  height: 0;
  margin: 0 auto 8px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 14px solid #fff;
  animation: coach-bounce 1s ease-in-out infinite;
}

@keyframes coach-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.ios-safari-coach p {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.ios-safari-coach button {
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  color: #0b54ff;
  background: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
