/* 清源工具集 · 通用安装包下载组件
   供 /software/*.html 详情页使用，与首页下载逻辑保持一致 */

.qydl-card {
  border: 1px solid #e3eaf5;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 22px 24px 18px;
  margin: 8px 0 34px;
  box-shadow: 0 8px 28px rgba(0, 82, 217, .07);
}

.qydl-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
  margin: 0 0 6px;
}

.qydl-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

.qydl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.qydl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 0;
  border-radius: 10px;
  background: #0052d9;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(0, 82, 217, .25);
}

.qydl-btn:hover { background: #003ba6; transform: translateY(-1px); }
.qydl-btn:active { transform: translateY(0); }

.qydl-btn svg { width: 16px; height: 16px; flex: none; }

.qydl-link {
  font-size: 13px;
  color: #0052d9;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 82, 217, .4);
  padding-bottom: 1px;
}

.qydl-link:hover { color: #003ba6; }

.qydl-sha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e3eaf5;
  font-size: 12px;
  color: #94a3b8;
}

.qydl-sha code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 8px;
  word-break: break-all;
  line-height: 1.5;
}

.qydl-copy {
  border: 1px solid #d8e2ef;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-family: inherit;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}

.qydl-copy:hover { border-color: #0052d9; color: #0052d9; }

.qydl-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.7;
}

/* ---------- 验证码弹窗 ---------- */

.qydl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
  backdrop-filter: blur(2px);
}

.qydl-overlay.active { display: flex; }

.qydl-modal {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.qydl-modal h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0f172a;
  font-weight: 700;
}

.qydl-modal p {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
}

.qydl-q {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0052d9;
  text-align: center;
  background: #f5f9ff;
  border-radius: 10px;
  padding: 14px 0;
  margin-bottom: 12px;
}

.qydl-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
}

.qydl-input:focus { border-color: #0052d9; box-shadow: 0 0 0 3px rgba(0, 82, 217, .12); }

.qydl-err {
  display: none;
  margin-top: 10px;
  font-size: 12.5px;
  color: #dc2626;
  line-height: 1.5;
}

.qydl-modal-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.qydl-modal-row .qydl-btn { flex: 1; justify-content: center; padding: 11px 0; font-size: 14px; }

.qydl-cancel {
  flex: 0 0 88px;
  border: 1px solid #d8e2ef;
  background: #fff;
  color: #475569;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.qydl-cancel:hover { border-color: #94a3b8; }

@media (max-width: 640px) {
  .qydl-card { padding: 18px 16px 14px; border-radius: 12px; }
  .qydl-title { font-size: 16px; }
  .qydl-actions { gap: 10px; }
  .qydl-btn { width: 100%; justify-content: center; }
}
