/* 『AI逆向研究所』资源下载 Web 版 —— 与桌面客户端一致的视觉风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #eef2f7 0%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.card {
  background: #ffffff;
  width: 380px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.12);
  padding: 26px 24px 18px;
  text-align: center;
}

.title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

/* ── 二维码区 ── */
.qr-wrap {
  width: 240px;
  height: 240px;
  margin: 8px auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #fff;
}
#qr-img { width: 100%; height: 100%; object-fit: contain; }

.qr-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f9fafb;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 状态文字 ── */
.status {
  color: #6b7280;
  font-size: 14px;
  margin: 10px 0;
  word-break: break-all;
}
.status.ok  { color: #16a34a; }
.status.err { color: #dc2626; }
.status.sub { margin: 2px 0 12px; }

/* ── 按钮 ── */
.btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { cursor: not-allowed; }

.btn-secondary {
  background: #e8eefc;
  color: #2563eb;
  font-size: 14px;
  padding: 10px 22px;
  margin: 6px 0 14px;
}
.btn-secondary:hover { background: #d4e2fc; }

/* 平台按钮：蓝 / 紫 / 绿（与桌面客户端配色一致） */
.platform-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 24px 14px; }
.btn-platform {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
}
.btn-win     { background: #2563eb; }
.btn-win:hover:not(:disabled)     { background: #1d4ed8; }
.btn-web     { background: #7c3aed; }
.btn-web:hover:not(:disabled)     { background: #6d28d9; }
.btn-android { background: #059669; }
.btn-android:hover:not(:disabled) { background: #047857; }
.btn-platform:disabled {
  background: #e5e7eb !important;
  color: #9ca3af;
}

/* ── 下载进度（浏览器原生下载不可控，这里做「打包中」动画） ── */
.progress-wrap {
  height: 14px;
  border-radius: 7px;
  background: #f1f5f9;
  overflow: hidden;
  margin: 14px 24px 4px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: #2563eb;
  border-radius: 7px;
  transition: width 0.3s ease;
}
.progress-bar.indeterminate {
  width: 30% !important;
  animation: slide 1.2s ease-in-out infinite;
}
@keyframes slide {
  0%   { margin-left: -30%; }
  100% { margin-left: 100%; }
}

/* ── 底部警示 ── */
.footer {
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}
