:root {
  --bg: #f2f4f8;
  --panel: rgba(255, 255, 255, 0.78);
  --text: #111827;
  --sub: #4b5563;
  --line: rgba(255, 255, 255, 0.66);
  --btn: #0a84ff;
  --btn-text: #ffffff;
  --danger: #b42318;
  --ring: rgba(10, 132, 255, 0.24);
  --shadow: 0 24px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, #dbe9ff 0%, rgba(219, 233, 255, 0) 48%),
    radial-gradient(circle at 95% 10%, #d7f8ef 0%, rgba(215, 248, 239, 0) 45%),
    var(--bg);
  min-height: 100vh;
  position: relative;
}

.bg-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-left {
  background: #7ec8ff;
  top: -120px;
  left: -100px;
}

.bg-glow-right {
  background: #89f0ce;
  right: -100px;
  bottom: -120px;
}

.page {
  max-width: 920px;
  margin: 28px auto;
  padding: 0 16px;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: var(--shadow);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
}

.hero {
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #e8f1ff;
  border-radius: 999px;
  padding: 6px 10px;
}

.subtitle {
  margin-top: 7px;
  color: var(--sub);
  font-size: 14px;
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--sub);
  font-size: 14px;
}

.row-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

select,
input,
button {
  font: inherit;
  border-radius: 18px;
}

select,
input {
  border: 1px solid #e6e9ef;
  height: 46px;
  line-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:focus,
input:focus {
  outline: none;
  border-color: #8ebdff;
  box-shadow: 0 0 0 4px var(--ring);
}

button {
  border: 1px solid rgba(10, 132, 255, 0.2);
  background: linear-gradient(120deg, var(--btn), #2b93ff);
  color: var(--btn-text);
  height: 46px;
  line-height: 46px;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.28);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.status {
  color: var(--sub);
  font-size: 13px;
  min-height: 18px;
}

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

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.results {
  display: grid;
  gap: 12px;
}

.card {
  border: 1px solid #e6eaf2;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
  animation: card-in 0.28s ease;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.title {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card-copy {
  height: 34px;
  line-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  flex-shrink: 0;
}

.content {
  margin-top: 9px;
  line-height: 1.6;
}

.follow {
  margin-top: 8px;
  color: var(--sub);
  font-size: 14px;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page {
    margin: 14px auto;
    padding: 0 10px;
  }

  .panel {
    border-radius: 22px;
    padding: 16px;
  }

  h1 {
    font-size: 27px;
  }
}
