:root {
  --bg: #0f1020;
  --card: rgba(25, 28, 54, 0.72);
  --text: #f2f3ff;
  --muted: #b7bad6;
  --accent: #9d7dff;
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(130, 89, 255, 0.35), transparent 35%),
    radial-gradient(circle at 80% 90%, rgba(35, 110, 255, 0.26), transparent 40%),
    var(--bg);
  display: grid;
  place-items: center;
  padding: 20px;
}

.container { width: min(860px, 100%); }
.card {
  backdrop-filter: blur(12px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.35);
}
.hidden { display: none; }

h1, h2, h3 { margin: 0 0 12px; }
.subtitle, .progress { color: var(--muted); margin: 0 0 14px; }

.options { display: grid; gap: 10px; margin: 16px 0 18px; }
.option {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: 0.18s;
  background: rgba(255, 255, 255, 0.03);
}
.option:hover { border-color: rgba(157, 125, 255, 0.6); }
.option.selected {
  border-color: var(--accent);
  background: rgba(157, 125, 255, 0.2);
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  color: white;
  background: linear-gradient(90deg, #7b5cff, #4f8dff);
  font-weight: 700;
  cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.match { color: #d8dcff; margin-bottom: 14px; }
.bars { display: grid; gap: 10px; margin-bottom: 14px; }
.bar-row { display: grid; gap: 6px; }
.bar-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
}
.fill { height: 100%; width: 0; transition: width 0.45s ease; }

.reasons { margin-top: 0; color: #e7e9ff; }
.reasons li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .card { padding: 18px; }
  h1 { font-size: 24px; }
}
