:root {
  --bg-start: #edf6ff;
  --bg-end: #f7fbff;
  --card-bg: rgba(255, 255, 255, 0.96);
  --text-main: #172033;
  --text-subtle: #5d6b82;
  --line: #e4ebf5;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success-bg: #eafaf0;
  --success-text: #1f7a45;
  --error-bg: #fff1f1;
  --error-text: #c23636;
  --info-bg: #edf5ff;
  --info-text: #2259b5;
  --shadow: 0 20px 45px rgba(22, 37, 66, 0.14);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg-start), var(--bg-end));
}

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

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 18px 20px;
  backdrop-filter: blur(8px);
}

.hero {
  text-align: center;
  margin-bottom: 18px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 12px 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-desc {
  margin: 0;
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 1.65;
}

.panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(248, 251, 255, 0.95);
  border: 1px solid var(--line);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin-bottom: 0;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.status-item.block {
  display: block;
}

.status-label {
  font-size: 14px;
  color: var(--text-subtle);
}

.status-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.code-block {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #f3f7fc;
  color: #334155;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
}

.notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.notice-info {
  background: var(--info-bg);
  color: var(--info-text);
  border: 1px solid rgba(34, 89, 181, 0.15);
}

.notice-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(31, 122, 69, 0.14);
}

.notice-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid rgba(194, 54, 54, 0.14);
}

.primary-btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.primary-btn:active {
  transform: scale(0.98);
}

.user-card,
.error-card {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.user-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 20px;
  object-fit: cover;
  background: #eef4ff;
  border: 1px solid var(--line);
}

.user-meta {
  flex: 1;
  min-width: 0;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.meta-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.break-all {
  word-break: break-all;
}

.raw-area {
  margin-top: 16px;
}

.raw-title,
.error-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.error-message {
  margin-bottom: 12px;
  color: var(--error-text);
  line-height: 1.6;
  word-break: break-word;
}

.debug-code,
.debug-log {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #d9f6ff;
  font-size: 12px;
  line-height: 1.7;
  font-family: Consolas, Monaco, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

.debug-code {
  max-height: 260px;
}

.debug-log {
  min-height: 180px;
  max-height: 320px;
}

.hidden {
  display: none;
}

@media (max-width: 520px) {
  .page-shell {
    padding: 18px 12px 24px;
  }

  .card {
    padding: 18px 14px 16px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .panel {
    padding: 14px;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .status-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-value {
    text-align: left;
  }

  .user-top {
    flex-direction: column;
    align-items: center;
  }

  .user-meta {
    width: 100%;
  }
}
