body {
  font-family: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.glass-panel {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.08);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(18px);
}

@media (min-width: 768px) {
  .glass-panel {
    padding: 2rem 2rem;
  }
}

.question-card {
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.18);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.question-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.28);
  border-color: rgba(129, 140, 248, 0.8);
}

.question-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.55rem;
}

.likert-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.likert-option {
  position: relative;
  flex: 1 1 0;
  cursor: pointer;
}

.likert-option input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.likert-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  font-size: 0.8rem;
  height: 2rem;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.08s ease;
}

.likert-option:hover span {
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.25);
}

.likert-option input[type='radio']:checked + span {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}

.pill-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: background 0.1s ease, box-shadow 0.1s ease, transform 0.1s ease;
}

.btn-secondary:hover {
  background: rgba(248, 250, 252, 0.98);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 6px 12px rgba(148, 163, 184, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
}

/* 结果条形图 */
.score-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.score-row-label {
  width: 5.2rem;
  color: #475569;
  white-space: nowrap;
}

.score-row-bar-wrap {
  flex: 1 1 0;
  height: 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.score-row-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.score-row-value {
  width: 2.2rem;
  text-align: right;
  color: #0f172a;
}

#shareCanvas {
  max-width: 100%;
}
