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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #111827;
  line-height: 1.6;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 28px 32px 32px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.brand-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.brand-subtitle {
  font-size: 13px;
  color: #6b7280;
}

.card-actions a {
  font-size: 13px;
  color: #6366f1;
  text-decoration: none;
}

.card-actions a:hover {
  text-decoration: underline;
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.hero-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 28px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #4b5563;
  background: #f9fafb;
}

.pill--primary {
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(129, 140, 248, 0.06);
  color: #4f46e5;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stat {
  background: #f9fafb;
  border-radius: 12px;
  padding: 10px 12px;
}

.stat-label {
  font-size: 11px;
  color: #9ca3af;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #eef2ff, #f9fafb 52%);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.qr-note {
  font-size: 11px;
  color: #6b7280;
  margin-top: 10px;
  text-align: center;
}


/* 表单与按钮 */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.field-label span {
  color: #ef4444;
  margin-left: 4px;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 9px 11px;
  font-size: 13px;
  color: #111827;
  background: #f9fafb;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.12);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.field-help {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.32);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #9ca3af, #9ca3af);
  box-shadow: none;
  transform: none;
}

.btn-primary .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-text {
  background: transparent;
  color: #6b7280;
  padding: 4px 0;
  box-shadow: none;
}

.btn-text:hover {
  color: #4b5563;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #34d399;
  margin-right: 6px;
}

.tag-weak {
  border-style: dashed;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.table th,
.table td {
  padding: 8px 8px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
}

.table th {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: none;
}

.badge-platform {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #4338ca;
  background: #eef2ff;
}

.text-muted {
  font-size: 12px;
  color: #9ca3af;
}

.copy-box {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 12px 14px;
  font-size: 13px;
  white-space: pre-wrap;
}

.copy-box-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.copy-box-title {
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
}

.footer {
  margin-top: 20px;
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
}

@media (max-width: 768px) {
  .card {
    padding: 22px 18px 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

