/* 思维体检 · 添加到桌面引导弹窗（install guide）
 * 结构类名由 app-install.js 生成；本文件只管视觉。
 * 定位：轻量小卡，不抢「发布公告」的分量——给手机端浏览器用户讲清
 * 「添加到主屏幕/桌面」的入口（iOS 分享菜单 / 鸿蒙与安卓浏览器菜单 / 原生安装），提升留存。 */

.ig-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 35, 45, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.ig-layer.show { opacity: 1; visibility: visible; }

.ig-card {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(23, 35, 45, .38);
  transform: translateY(14px) scale(.97);
  transition: transform .3s cubic-bezier(.22, .9, .24, 1);
}
.ig-layer.show .ig-card { transform: translateY(0) scale(1); }

.ig-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--faint);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.ig-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }

/* ---------- 卡头：小图标 + 衬线标题 ---------- */
.ig-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 22px 0;
}
.ig-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(31, 107, 103, .18);
}
.ig-icon svg { width: 32px; height: 32px; }
.ig-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
}
.ig-title { font-family: var(--serif); font-size: 21px; line-height: 1.35; font-weight: 700; margin: 5px 0 6px; }
.ig-sub { font-size: 13px; color: var(--ink-soft); line-height: 1.65; max-width: 30em; }

/* ---------- 三点好处（✓ 前缀） ---------- */
.ig-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 22px 0;
  padding: 12px 14px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.ig-benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.ig-benefit::before {
  content: "✓";
  flex: none;
  width: 17px; height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

/* ---------- 分平台步骤 ---------- */
.ig-steps-wrap { margin: 14px 22px 0; }
.ig-steps-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--faint);
  margin-bottom: 8px;
}
.ig-steps { list-style: none; display: flex; flex-direction: column; gap: 9px; counter-reset: ig; }
.ig-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
  counter-increment: ig;
}
.ig-step-num {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.ig-step-num::before { content: counter(ig); }
.ig-step b { font-weight: 700; }
.ig-native-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 12px 14px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

/* ---------- 按钮 ---------- */
.ig-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
  padding: 0 22px 20px;
}
.ig-primary {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--paper);
  background: var(--green);
  border: 1px solid var(--green);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.ig-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.ig-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.ig-primary:active { transform: translateY(1px); }
.ig-ghost {
  width: 100%;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule-dark);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.ig-ghost:hover { color: var(--accent); border-color: var(--accent); }
.ig-optout {
  align-self: center;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.ig-optout:hover { color: var(--accent); }

/* ---------- 成功态 ---------- */
.ig-success { text-align: center; padding: 34px 26px 30px; }
.ig-success-badge {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font-size: 26px;
  line-height: 54px;
  text-align: center;
}
.ig-success h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.ig-success p { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.65; }

@media (max-width: 560px) {
  .ig-card { border-radius: 14px; }
  .ig-head { padding: 20px 18px 0; }
  .ig-benefits { margin: 14px 18px 0; }
  .ig-steps-wrap { margin: 13px 18px 0; }
  .ig-actions { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ig-layer, .ig-card, .ig-close, .ig-primary, .ig-ghost { transition: none; }
}
