/* GitHub 仓库下载 — 页面样式。变量沿用 site.css。 */

.gd-page main { max-width: 860px; }

.gd-app {
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 12px;
  background: #fff;
  padding: 1.1rem;
}

.gd-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gd-url {
  flex: 1;
  min-width: 260px;
  font: inherit;
  font-size: 0.92rem;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  min-height: 42px;
}
.gd-url:focus { border-color: var(--accent, #1971c2); outline: none; }

.gd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit; font-size: 0.9rem;
  cursor: pointer;
}
.gd-btn:disabled { opacity: .5; cursor: not-allowed; }
.gd-primary { background: var(--accent, #1971c2); color: var(--accent-text, #fff); border-color: var(--accent, #1971c2); font-weight: 600; }

.gd-adv { margin-top: 0.7rem; font-size: 0.85rem; color: var(--muted, #6b7280); }
.gd-adv summary { cursor: pointer; }
.gd-adv-body { padding: 0.5rem 0 0.2rem; }
.gd-adv input {
  width: 100%;
  max-width: 420px;
  font: inherit; font-size: 0.86rem;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 7px;
  padding: 0.35rem 0.55rem;
  box-sizing: border-box;
}
.gd-note { font-size: 0.78rem; margin: 0.4rem 0 0; }

.gd-status { margin-top: 1rem; }
.gd-info { font-size: 0.88rem; margin: 0 0 0.5rem; }
.gd-info code { background: var(--card, #f0f1f3); border-radius: 4px; padding: 0.05em 0.35em; font-size: 0.82em; }

.gd-progress {
  height: 8px;
  border-radius: 99px;
  background: var(--card, #f0f1f3);
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.gd-bar {
  height: 100%;
  width: 0%;
  background: var(--accent, #1971c2);
  border-radius: 99px;
  transition: width .2s;
}

.gd-files {
  list-style: none;
  margin: 0; padding: 0;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.gd-files li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.28rem 0.6rem;
  border-bottom: 1px solid var(--line, #eef0f2);
}
.gd-files li:last-child { border-bottom: none; }
.gd-files .st { color: var(--muted, #6b7280); white-space: nowrap; }
.gd-files .st.ok { color: #2f9e44; }
.gd-files .st.err { color: #e03131; }

.gd-actions { margin-top: 1rem; display: flex; gap: 0.6rem; }
