:root {
  --rw-canvas: #EDEAF8;
  --rw-surface: #FFFFFF;
  --rw-primary: #6B4FE0;
  --rw-primary-deep: #5438C4;
  --rw-primary-soft: #EDE9FB;
  --rw-ink: #2E2A4A;
  --rw-ink-muted: #5B5770;
  --rw-success: #2F7446;
  --rw-radius-lg: 24px;
  --rw-radius-pill: 999px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--rw-canvas);
  color: var(--rw-ink);
  font-family: Nunito, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}

.brand {
  color: var(--rw-ink);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
}

.brand span { color: var(--rw-primary); font-size: 14px; margin-left: 6px; }

.tag {
  background: var(--rw-primary-soft);
  color: var(--rw-primary-deep);
  border-radius: var(--rw-radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}

.shell {
  width: min(900px, calc(100% - 32px));
  margin: 12px auto 48px;
  display: grid;
  gap: 20px;
}

.card {
  background: var(--rw-surface);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(83, 56, 196, 0.10);
}

h1, h2 { margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }

p { color: var(--rw-ink-muted); margin: 0 0 16px; }

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

button, input {
  font: inherit;
  border-radius: var(--rw-radius-pill);
  border: 1px solid var(--rw-primary);
  padding: 10px 18px;
}

button {
  background: var(--rw-primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:hover { background: var(--rw-primary-deep); }
button.ghost { background: #fff; color: var(--rw-primary); }
button.ghost:hover { background: var(--rw-primary-soft); }

.button-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid var(--rw-primary);
  background: #fff;
  color: var(--rw-primary);
}
.button-link:hover { background: var(--rw-primary-soft); }

input { flex: 1 1 220px; border-color: #D8D2EE; }

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

.list { display: grid; gap: 10px; }

.item {
  width: 100%;
  text-align: left;
  background: var(--rw-primary-soft);
  color: var(--rw-ink);
  border: 0;
  padding: 14px 18px;
}

.item:hover { background: #E3DCFA; }

.detail {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--rw-radius-lg);
  background: var(--rw-primary-soft);
  white-space: pre-wrap;
}

.options { display: grid; gap: 8px; margin-top: 16px; }
.option { text-align: left; background: #fff; color: var(--rw-ink); border: 1px solid #D8D2EE; }
.option.selected { background: var(--rw-primary); color: #fff; border-color: var(--rw-primary); }

.feedback { margin-top: 12px; font-weight: 800; color: var(--rw-success); }
.feedback.bad { color: #B8522B; }

.hero { padding: 18px 0 10px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--rw-muted); font-size: 16px; }
.shell { max-width: 980px; }

.site-footer {
  margin-top: 32px;
  padding: 24px 20px;
  color: var(--rw-muted);
  font-size: 13px;
}
.site-footer .wrap { max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.site-footer a { color: var(--rw-muted); text-decoration: none; }
.site-footer a:hover { color: var(--rw-primary); }

@media (max-width: 600px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .card { padding: 22px; border-radius: 24px; }
  .site-footer .wrap { gap: 10px; }
}
