*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 背景：简单深色渐变，主视觉由中间的流程图承担 */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e5e7eb;
  min-height: 100vh;
  background: linear-gradient(135deg, #020617 0%, #0f172a 40%, #111827 70%, #020617 100%);
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem calc(3rem + var(--footer-h, 92px));
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.25rem;
}

.flow-hero {
  margin: 0 auto 1.75rem;
}

.flow-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-size: 0.9rem;
  color: #9ca3af;
}

input[type="text"] {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
}

input[type="text"]::placeholder {
  color: #6b7280;
}

button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

button[type="submit"]:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5);
}

button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(79, 70, 229, 0.5);
}

.status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #facc15;
}

#result-text p {
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

#result-text ul {
  margin-left: 1rem;
  margin-top: 0.25rem;
}

#result-text li {
  margin-bottom: 0.25rem;
}

.summary {
  margin-bottom: 1rem;
}

.kv-table {
  padding-top: 0.25rem;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed rgba(55, 65, 81, 0.7);
  font-size: 0.9rem;
}

.kv-key {
  font-weight: 600;
  color: #e5e7eb;
}

.kv-value {
  text-align: right;
  color: #cbd5f5;
}

.kv-muted {
  color: #6b7280;
  font-style: italic;
}

.divider {
  margin: 0.75rem 0;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.reference-block {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;

  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;

  padding: 0.9rem 1rem;
  background: rgba(2, 6, 23, 0.78);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer p + p {
  margin-top: 0.35rem;
}

.footer strong {
  color: #f97316;
}

@media (min-width: 900px) {
  .content {
    /* 左：右 ≈ 1 : 2.4，视觉上更接近 1:3 */
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  }
}
