/* Shared page chrome additions */
:focus-visible {
  outline: 2px solid var(--accent, #3b9eff);
  outline-offset: 3px;
}

.btn:focus-visible,
.btn-download:focus-visible,
.nav-links a:focus-visible,
.lib-chip:focus-visible,
.example:focus-visible,
.doc-card:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent, #3b9eff);
  outline-offset: 2px;
}

.btn-download:disabled,
.btn-download.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
  transform: none;
}

.pkg-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(230, 184, 77, 0.12);
  color: #e8d7a4;
  border: 1px solid rgba(230, 184, 77, 0.28);
}

.pkg-badge.is-ready {
  background: rgba(62, 207, 142, 0.12);
  color: #8ee0b5;
  border-color: rgba(62, 207, 142, 0.28);
}

.download-checklist {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.download-checklist h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.download-checklist ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.download-checklist li {
  margin: 6px 0;
}

.download-checklist a {
  color: var(--accent-2);
}

.download-pending {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(230, 184, 77, 0.28);
  background: rgba(230, 184, 77, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-pending strong {
  color: #e8d7a4;
  font-weight: 650;
}

.download-pending a {
  color: var(--accent-2);
}

.shot-missing {
  position: relative;
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(59,158,255,0.06));
}

.shot-missing img.is-broken {
  opacity: 0;
  min-height: 160px;
}

.shot-missing::after {
  content: "界面预览图暂不可用";
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--muted);
  font-size: 0.92rem;
  pointer-events: none;
}

.shot-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: inherit;
}

.shot-zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shot-zoom img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.webview2-link {
  color: var(--accent-2);
}
