:root {
  --bg: #0f0e17;
  --card: #1a1926;
  --border: #2d2b3d;
  --text: #fffffe;
  --muted: #a7a9be;
  --accent: #7f5af0;
  --accent2: #2cb67d;
}
* { box-sizing: border-box; }
body.install-share {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.install-share .wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.install-share .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.install-share .meta { color: var(--muted); font-size: 0.85rem; }
.install-share .btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
}
.install-share .btn.secondary { background: #2d2b3d; color: var(--text); }
.install-share .form-row input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.install-share header { border-bottom: none; margin-bottom: 12px; padding-bottom: 0; }
.install-share section { margin-top: 20px; }

/* 渠道皮肤：背景 lazy 加载，仅当前产品目录 */
body.install-skin {
  --install-overlay: rgba(8, 10, 18, 0.78);
}
.install-bg {
  display: none;
}
body.install-skin .install-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}
body.install-skin::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--install-overlay);
  pointer-events: none;
}
body.install-skin .wrap.install-share {
  position: relative;
  z-index: 0;
}

.install-brand { text-align: center; margin-bottom: 8px; }
.install-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 16px;
}
.install-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.install-brand-text h1 { margin: 0 0 4px; font-size: 1.35rem; }
.install-brand-text .meta { margin: 0; }
.install-brand-hero {
  display: block;
  max-width: min(280px, 72vw);
  max-height: 96px;
  width: auto;
  height: auto;
  margin: 0 auto 4px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}
body.install-skin .card {
  background: rgba(26, 25, 38, 0.92);
  backdrop-filter: blur(6px);
}

/* 页脚联系入口：低调文字链，不占主视觉 */
.install-contact {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}
.install-contact-label {
  margin-right: 6px;
  opacity: 0.85;
}
.install-contact-sep {
  margin: 0 6px;
  opacity: 0.45;
}
.install-contact-link {
  color: rgba(167, 169, 190, 0.95);
  text-decoration: none;
}
.install-contact-link:hover {
  color: var(--text);
  text-decoration: underline;
}
.install-contact-service {
  color: rgba(167, 169, 190, 0.85);
}

.gate-card { max-width: 360px; margin: 24px auto; }
.gate-q { font-size: 1.1rem; margin: 0 0 12px; }
.gate-err { color: #f88; margin: 0 0 12px; }
.captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}
.captcha-modal[hidden] { display: none !important; }
.captcha-dialog {
  width: 100%;
  max-width: 360px;
  margin: 0;
}
.install-guide { margin-top: 16px; padding-bottom: 16px; }
.guide-header { margin-bottom: 12px; }
.guide-header h3 { margin: 0 0 4px; font-size: 1rem; }
.guide-sub { margin: 0; font-size: 0.82rem; }
.guide-block { display: none; }
.guide-block.active { display: block; }
.guide-block.guide-done .guide-wizard { opacity: 0.72; }
.guide-wizard { margin-top: 4px; }
.guide-step-head { margin-bottom: 10px; font-size: 0.85rem; color: var(--muted); }
.guide-step-current { color: var(--accent2); }
.guide-step-view { position: relative; min-height: 280px; }
.guide-step {
  display: none;
  animation: guideFade 0.25s ease;
}
.guide-step.active { display: block; }
@keyframes guideFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.guide-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.guide-step-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--accent2);
  text-align: center;
}
.guide-step-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
  text-align: center;
  padding: 0 8px;
}
.guide-phone {
  width: 168px;
  border: 2px solid #3a4a62;
  border-radius: 22px;
  background: #12141c;
  padding: 8px 8px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.guide-phone-notch {
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: #2a3142;
  margin: 0 auto 8px;
}
.guide-phone-body { display: flex; flex-direction: column; gap: 6px; min-height: 200px; }
.mock-status, .mock-bar, .mock-bar-right, .mock-card, .mock-btn, .mock-row, .mock-menu, .mock-tip {
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.35;
  padding: 6px 8px;
}
.mock-status { background: #1a2030; color: #8b95a8; text-align: center; }
.mock-bar { background: #1e2838; color: #c8d0dc; }
.mock-wechat { background: #1a3d2a; color: #9fd4b0; }
.mock-menu { background: #243048; color: #7ec8ff; text-align: right; }
.mock-bar-right { background: #2a4a6e; color: #fff; text-align: right; font-weight: 600; }
.mock-card { background: #1c2433; color: #d6dce8; text-align: center; }
.mock-accent { border: 1px solid #3d6a8f; background: #1a2a3d; color: #9fd4ff; }
.mock-btn { text-align: center; font-weight: 600; }
.mock-primary { background: #2d6a4f; color: #e8fff3; }
.mock-muted { background: #2a2f3a; color: #9aa3b2; }
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1c2433;
  color: #d6dce8;
}
.mock-switch {
  width: 28px;
  height: 14px;
  border-radius: 999px;
  background: #3a4254;
  position: relative;
}
.mock-switch.on { background: #3d8a5a; }
.mock-switch.on::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.mock-tip { background: transparent; color: #8b95a8; text-align: center; font-size: 0.62rem; }
.mock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 4px;
}
.mock-grid span {
  aspect-ratio: 1;
  border-radius: 12px;
  background: #252b38;
}
.mock-grid .mock-icon {
  background: linear-gradient(145deg, #3d6a8f, #2a4a6e);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}
.guide-nav { margin-top: 14px; }
.guide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4254;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.guide-dot.active { background: var(--accent2); transform: scale(1.15); }
.guide-nav-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.guide-nav-btns .btn { min-width: 96px; padding: 8px 16px; font-size: 0.88rem; }
.guide-pick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.guide-pick-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #3a4a62;
  background: #1a2030;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
}
.guide-pick-btn:active { opacity: 0.85; }
.primary-cta { text-align: center; border-color: #2a4a6e; padding: 20px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dl-row.recommended { border-color: var(--accent2); }
.dl-row.legacy { border-color: #3d3a52; opacity: 0.95; margin-bottom: 8px; }
.dl-row.legacy:last-child { margin-bottom: 0; }
.dl-row.legacy .badge.ver { margin-left: 8px; font-size: 0.75rem; }
.install-share .dl-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.legacy-collapse {
  margin-top: 14px;
  border: 1px solid #3d3a52;
  border-radius: 10px;
  background: rgba(26, 32, 48, 0.55);
  overflow: hidden;
}
.legacy-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
  user-select: none;
}
.legacy-toggle::-webkit-details-marker { display: none; }
.legacy-toggle::after {
  content: '›';
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.legacy-collapse[open] .legacy-toggle {
  color: var(--text);
  border-bottom: 1px solid #3d3a52;
}
.legacy-collapse[open] .legacy-toggle::after { transform: rotate(90deg); }
.legacy-list { padding: 10px 12px 12px; }
.btn.ios { background: #2a4a6e; }
.tips { font-size: 0.85rem; line-height: 1.6; }
.probe-tag { display: inline-block; font-size: 0.72rem; padding: 2px 6px; border-radius: 4px; margin-left: 6px; background: #2d2b3d; color: var(--muted); }
.probe-tag.ok { background: #1e3a2f; color: var(--accent2); }
.probe-tag.bad { background: #3a1e1e; color: #f88; }
