/* 顶部 App 下载入口：平板及手机端隐藏（手机端已有 mobile-app-banner） */
.header-app-download {
  display: none;
  position: relative;
}

.header-app-download[hidden] {
  display: none !important;
}

@media screen and (min-width: 1200px) {
  .header-app-download {
    display: block;
  }
}

.header-app-download-btn,
.header-app-download-btn:link,
.header-app-download-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.header-app-download-btn i {
  font-size: 14px;
  line-height: 1;
}

.header-app-download:hover .header-app-download-btn,
.header-app-download-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.25);
}

.header-app-download-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1001;
  width: 216px;
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(3, 32, 90, 0.22);
  color: #1F2937;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

/* 填补按钮和弹层之间的空隙，鼠标移动时弹层不会消失 */
.header-app-download-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.header-app-download:hover .header-app-download-panel,
.header-app-download:focus-within .header-app-download-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-app-download-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #03205a;
}

.header-app-download-qr {
  display: block;
  width: 168px;
  height: 168px;
  margin: 10px auto;
}

.header-app-download-platform {
  font-size: 11px;
  line-height: 1.5;
  color: #667085;
}

.header-app-download-more,
.header-app-download-more:link,
.header-app-download-more:visited {
  display: inline-block;
  margin-top: 8px;
  color: #1a5fd0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.header-app-download-more:hover {
  text-decoration: underline;
}
