/* 「添加到桌面」提示条和 iOS 图文引导。配色来自 site.css 的变量。 */

.pwa-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
}
.pwa-bar-icon { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.pwa-bar-text { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.pwa-bar-text b { font-size: 1.02rem; }
.pwa-bar-text span { color: var(--muted); font-size: 0.9rem; }
.pwa-bar-actions { flex: 1 1 100%; display: flex; gap: 8px; }
.pwa-bar-actions button { flex: 1 1 0; }

.pwa-footer-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-strong);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
}
.pwa-footer-link:hover { background: none; }

.pwa-sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 14, 20, 0.55);
}
.pwa-sheet {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}
.pwa-sheet-title { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.02em; }
.pwa-sheet-lead { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }
.pwa-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pwa-step-head { display: flex; align-items: center; gap: 10px; }
.pwa-step-no {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  font-size: 0.9rem;
}
.pwa-pic-wrap { margin: 8px 0 2px; }
.pwa-pic { display: block; width: 100%; height: auto; max-height: 120px; }
.pwa-step-note { margin: 2px 0 0 36px; color: var(--muted); font-size: 0.88rem; }
.pwa-sheet-actions { margin-top: 16px; display: flex; }
.pwa-sheet-actions button { flex: 1; min-height: 48px; }

.pic-bg { fill: var(--bg-muted); stroke: var(--line); stroke-width: 1; }
.pic-field { fill: var(--bg-elev); stroke: var(--line); stroke-width: 1; }
.pic-txt { fill: var(--text); font-family: var(--font); }
.pic-muted { fill: var(--muted); font-family: var(--font); }
.pic-strong { font-weight: 800; }
.pic-line { stroke: var(--text); }
.pic-hit { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 2; }
.pic-icon { fill: var(--brand); }
.pic-icon-line { stroke: var(--logo-sheet); }

@media print { .pwa-bar, .pwa-sheet-wrap, .pwa-footer-link { display: none !important; } }
