/* Qihui V68: download gate + workbench download card/modal */
.qh-dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px 22px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 60%, #ffffff 100%);
}
.qh-dl-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.qh-dl-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}
.qh-dl-card .qh-dl-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.qh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.qh-btn-primary {
  background: #2563eb;
  color: #ffffff;
}
.qh-btn-primary:hover {
  background: #1d4ed8;
}
.qh-btn-ghost {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}
.qh-btn-ghost:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.qh-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
}
.qh-modal {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
  color: #0f172a;
}
.qh-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.qh-modal p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}
.qh-modal .qh-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #0f172a;
}
.qh-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.qh-modal-actions .qh-btn {
  height: 38px;
}
.qh-modal-actions .qh-btn-primary {
  flex: 1;
}
.qh-modal-tip {
  margin-top: 12px !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .qh-dl-card {
  border-color: #1e3a8a;
  background: linear-gradient(135deg, #0f172a 0%, #111c33 60%, #0b1220 100%);
}
[data-theme="dark"] .qh-dl-card h3 {
  color: #f8fafc;
}
[data-theme="dark"] .qh-dl-card p {
  color: #94a3b8;
}
[data-theme="dark"] .qh-modal {
  background: #111827;
  color: #f3f4f6;
}
[data-theme="dark"] .qh-modal p {
  color: #cbd5e1;
}
[data-theme="dark"] .qh-modal .qh-code {
  background: #1f2937;
  color: #f3f4f6;
}
[data-theme="dark"] .qh-btn-ghost {
  background: #111827;
  border-color: #374151;
  color: #e5e7eb;
}
[data-theme="dark"] .qh-btn-ghost:hover {
  background: #1f2937;
}
[data-theme="dark"] .qh-modal-tip {
  color: #64748b !important;
}

/* the product page no longer exposes the download link/password */
.qh-tender-page .download-code {
  display: none !important;
}

@media (max-width: 640px) {
  .qh-dl-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 18px; }
  .qh-dl-card .qh-dl-actions { width: 100%; }
  .qh-dl-card .qh-dl-actions .qh-btn { width: 100%; }
}

