:root {
  --bg: #f3efe6;
  --panel: rgba(255, 255, 255, 0.86);
  --ink: #1b2333;
  --muted: #6a7282;
  --line: rgba(27, 35, 51, 0.08);
  --primary: #1c6ed4;
  --primary-soft: #dceafe;
  --green: #17905d;
  --orange: #dd7b28;
  --red: #d14c59;
  --shadow: 0 18px 40px rgba(18, 34, 66, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(28, 110, 212, 0.18), transparent 36%),
    radial-gradient(circle at top right, rgba(23, 144, 93, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f3ea 0%, #f2ede3 100%);
}

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

.hero-card,
.panel,
.summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.hero-copy {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.stack,
.field,
.panel,
.question-card,
.list-panel {
  display: grid;
  gap: 14px;
}

.api-label span,
.field span,
.mini-title,
.summary-label,
.subtle {
  color: var(--muted);
  font-size: 13px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 35, 51, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary-btn {
  background: linear-gradient(135deg, #2676dd, #0f5ab4);
  color: #fff;
  box-shadow: 0 14px 28px rgba(28, 110, 212, 0.24);
}

.secondary-btn {
  background: rgba(28, 110, 212, 0.1);
  color: var(--primary);
}

.ghost-btn {
  background: rgba(27, 35, 51, 0.06);
  color: var(--ink);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  min-height: 132px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.summary-card strong {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  margin-top: auto;
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  opacity: 0.18;
}

.accent-blue::after {
  background: var(--primary);
}

.accent-orange::after {
  background: var(--orange);
}

.accent-red::after {
  background: var(--red);
}

.accent-green::after {
  background: var(--green);
}

.panel-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.chip-row,
.action-row,
.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(27, 35, 51, 0.06);
  color: var(--ink);
}

.chip.active {
  background: var(--primary);
  color: #fff;
}

.question-panel {
  min-height: 560px;
}

.question-card {
  min-height: 340px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 255, 0.92)),
    var(--primary-soft);
  border: 1px solid rgba(28, 110, 212, 0.1);
}

.question-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(28, 110, 212, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.pill.muted {
  background: rgba(27, 35, 51, 0.08);
  color: var(--muted);
}

#questionStem {
  line-height: 1.7;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(27, 35, 51, 0.08);
}

.option-btn.active {
  background: rgba(28, 110, 212, 0.16);
  border-color: rgba(28, 110, 212, 0.34);
}

.feedback-box {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(27, 35, 51, 0.05);
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.list-panel {
  min-height: 180px;
}

.list-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(27, 35, 51, 0.04);
  border: 1px solid rgba(27, 35, 51, 0.06);
}

.list-item strong {
  display: block;
  margin-bottom: 6px;
}

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

  .app-shell {
    width: min(100% - 20px, 860px);
    margin-top: 12px;
  }
}
