.panzhi-app-entry {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex: 0 0 auto; width: auto; min-height: 44px; padding: 0 13px;
  border: 1px solid #12233f; border-radius: 10px; color: #fff;
  background: #12233f; font-size: 13px; font-weight: 700;
  line-height: 1.35; text-decoration: none; white-space: nowrap;
}
.panzhi-app-entry svg { width: 17px; height: 17px; flex: 0 0 auto; }
.panzhi-app-entry:hover { background: #203a5d; border-color: #203a5d; }
.topbar-actions { gap: 8px; }
.panzhi-app-public {
  display: grid; grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center; gap: 12px; margin: 0 0 22px; padding: 15px;
  border: 1px solid #cbd8db; border-radius: 12px; background: #f0f5f4;
  text-align: left;
}
.panzhi-app-public img { width: 44px; height: 44px; border-radius: 11px; }
.panzhi-app-public h2 { margin: 0 0 5px; color: #12233f; font-size: 15px; line-height: 1.45; }
.panzhi-app-public p { margin: 0; color: #40565b; font-size: 13px; line-height: 1.7; }
.hero-actions + .panzhi-app-public { margin-top: 20px; }
.panzhi-download-dialog {
  width: min(500px,calc(100% - 28px)); max-height: calc(100dvh - 28px);
  margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #d7e1eb; border-radius: 20px;
  color: #172942; background: #fff; box-shadow: 0 24px 70px #12233f38;
  font-family: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
.panzhi-download-dialog::backdrop { background: #12233f99; }
.panzhi-download-panel { padding: 24px; }
.panzhi-download-head { display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 12px; }
.panzhi-download-head h2 { margin: 0; color: #12233f; font-size: 23px; line-height: 1.4; }
.panzhi-download-icon { width: 52px; height: 52px; border-radius: 13px; }
.panzhi-download-close {
  display: grid; place-items: center; width: 44px; min-height: 44px;
  padding: 0; border: 1px solid #d7e1eb; border-radius: 10px;
  color: #405773; background: #f3f6fa; font-size: 26px; cursor: pointer;
}
.panzhi-download-summary { margin: 20px 0; color: #52647b; font-size: 15px; line-height: 1.8; }
.panzhi-download-platform { padding: 18px 0; border-top: 1px solid #e2e9f1; }
.panzhi-download-platform:last-child { padding-bottom: 0; }
.panzhi-download-platform h3 { margin: 0 0 8px; color: #172942; font-size: 17px; line-height: 1.5; }
.panzhi-download-platform p { margin: 0 0 14px; color: #52647b; font-size: 14px; line-height: 1.8; }
.panzhi-download-platform .panzhi-download-hint { margin: 10px 0 0; font-size: 13px; }
.panzhi-download-primary,.panzhi-download-secondary {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 16px; border: 1px solid #12233f; border-radius: 11px;
  color: #fff; background: #12233f; font-size: 15px; line-height: 1.5;
  font-weight: 700; text-decoration: none;
}
.panzhi-download-secondary { color: #12233f; background: #f3f6fa; border-color: #cbd8e6; }
.panzhi-app-entry:focus-visible,.panzhi-download-dialog a:focus-visible,.panzhi-download-dialog button:focus-visible {
  outline: 3px solid #1369c1; outline-offset: 3px;
}
html[data-panzhi-theme=dark] .panzhi-download-head h2,
html[data-panzhi-theme=dark] .panzhi-download-platform h3 { color: #f0f5ff; }
html[data-panzhi-theme=dark] .panzhi-download-summary,
html[data-panzhi-theme=dark] .panzhi-download-platform p { color: #b5c5db; }
html[data-panzhi-theme=dark] .panzhi-download-close,
html[data-panzhi-theme=dark] .panzhi-download-secondary { color: #f0f5ff; background: #0f1b2e; border-color: #3d506a; }
@media(max-width:600px) {
  .topbar-actions .panzhi-app-entry { width: auto; min-height: 44px; padding: 0 10px; font-size: 12px; }
  .topbar-actions .panzhi-app-entry svg { display: none; }
  .panzhi-app-public { grid-template-columns: 44px minmax(0,1fr); padding: 14px; }
  .panzhi-app-public .panzhi-app-entry { grid-column: 2; justify-self: start; }
  .panzhi-download-panel { padding: 20px; }
  .panzhi-download-head { gap: 10px; }
  .panzhi-download-head h2 { font-size: 20px; }
}
