:root {
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.1);
  --card-strong: rgba(255, 255, 255, 0.16);
  --text: #eef4ff;
  --muted: #a8b3c7;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --danger: #ff6584;
  --success: #70e1a1;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(124, 92, 255, 0.42), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(0, 212, 255, 0.28), transparent 24rem),
    linear-gradient(135deg, #080b16 0%, var(--bg) 52%, #12172d 100%);
}

a {
  color: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce6ff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px var(--success);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.search-panel,
.profile-card,
.data-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.search-panel {
  padding: 22px;
}

.search-form {
  display: flex;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(6, 10, 24, 0.56);
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.search-form input::placeholder {
  color: #727f98;
}

.search-form button {
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 28px rgba(0, 212, 255, 0.2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.search-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.search-form button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.tips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tip {
  padding: 8px 11px;
  border-radius: 999px;
  color: #cad5ea;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.status {
  min-height: 22px;
  margin: 18px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.content {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-card {
  overflow: hidden;
}

.profile-cover {
  height: 112px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.85), rgba(0, 212, 255, 0.5)),
    radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 42%);
}

.profile-main {
  padding: 0 24px 24px;
}

.avatar {
  width: 118px;
  height: 118px;
  margin-top: -58px;
  border: 6px solid rgba(12, 17, 35, 0.92);
  border-radius: 32px;
  object-fit: cover;
  background: #11182f;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.profile-title {
  margin-top: 14px;
}

.profile-title h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.login {
  display: inline-block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.bio {
  margin: 18px 0 0;
  color: #d5ddef;
  line-height: 1.7;
}

.meta-list {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
}

.meta-label {
  color: var(--muted);
  font-size: 13px;
}

.meta-value {
  max-width: 64%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.data-card {
  padding: 24px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title h3 {
  margin: 0;
  font-size: 20px;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.open-link {
  flex: none;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  text-decoration: none;
}

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

.field {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(5, 8, 19, 0.36);
}

.field-name {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.field-value {
  overflow-wrap: anywhere;
  color: #f7faff;
  font-size: 14px;
  line-height: 1.55;
}

.field-value a {
  color: #7ee8ff;
  text-decoration: none;
}

.field-value.empty {
  color: #738099;
  font-style: italic;
}

.empty-state {
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 22px;
}

@media (max-width: 920px) {
  .hero,
  .content {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 22px, 1180px);
    padding: 28px 0;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form input {
    padding: 14px 12px;
  }

  .search-form button {
    width: 100%;
  }

  .field-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }
}
