:root {
  --bg: #f3f8fb;
  --panel: #ffffff;
  --ink: #173247;
  --muted: #6a7f8f;
  --line: #d8e6ee;
  --accent: #1769aa;
  --accent-2: #18a999;
  --green: #12845a;
  --red: #c03945;
  --warn: #b7791f;
  --shadow: 0 18px 45px rgba(31, 80, 111, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
}

.shell {
  width: min(1040px, 96vw);
  margin: 24px auto 40px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  margin-bottom: 18px;
}

.hero-actions {
  display: grid;
  gap: 10px;
  min-width: min(360px, 100%);
}

.hero-actions label span {
  display: block;
  margin-bottom: 7px;
  color: #38566b;
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 43px;
  border: 1px solid #c5d8e2;
  border-radius: 11px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 105, 170, .1);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; }

h1 { font-size: 28px; }

h2 { font-size: 18px; }

.sub, .step p, .status p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

button {
  border: 0;
  border-radius: 11px;
  padding: 10px 15px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}

button:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled { opacity: .48; cursor: not-allowed; transform: none; }

.primary { background: linear-gradient(135deg, var(--accent), #2591c9); }
.danger { background: linear-gradient(135deg, var(--red), #dd6870); }
.ghost {
  color: var(--accent);
  background: #eef7fb;
  border: 1px solid #cde4ee;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
}

.num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.inline-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed #bdd8e4;
  border-radius: 12px;
  background: #f6fbfd;
}

code {
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  color: #0d5c8d;
  background: #eaf5fb;
  word-break: break-all;
  font-family: Consolas, "Courier New", monospace;
}

.status {
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 5px solid var(--accent-2);
}

.logs {
  margin-top: 16px;
  overflow: hidden;
}

.logs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.logs-body {
  height: 260px;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
  background: #fff;
}

.log-error { color: var(--red); font-weight: 800; }
.log-success { color: var(--green); font-weight: 800; }
.log-warn { color: var(--warn); font-weight: 800; }
.hidden { display: none; }

@media (max-width: 780px) {
  .hero { flex-direction: column; align-items: stretch; }
  .steps { grid-template-columns: 1fr; }
  .inline-box { align-items: stretch; }
  .inline-box button, .hero button { width: 100%; }
}
