:root {
  color: #071437;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
button { font-family: inherit; }

.icon-inline {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 6px;
}

.question-grid.is-visible { display: block; }
.question-grid:not(.is-visible) { display: none; }
.option-item, .grid-item, .gender-option, .age-option, button { -webkit-tap-highlight-color: transparent; }
.btn-nav:disabled { cursor: not-allowed; opacity: .55; }

.dialog-shell {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .5);
  animation: dialog-fade .2s ease;
}

.dialog-shell .el-dialog.demographic-dialog {
  width: min(560px, calc(100vw - 32px));
  margin: 0;
  display: block;
}

@keyframes dialog-fade { from { opacity: 0; } to { opacity: 1; } }

#toast-root {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.local-toast {
  min-width: 320px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  background: #409eff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  text-align: center;
  animation: toast-in .25s ease;
}
.local-toast.warning { background: #e6a23c; }
.local-toast.success { background: #67c23a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

.chart-container { position: relative; }
.radar-svg { width: 100%; height: 100%; min-height: 340px; display: block; }
.radar-grid { fill: none; stroke: #d8dce6; stroke-width: 1; }
.radar-axis { stroke: #d8dce6; stroke-width: 1; }
.radar-area { fill: rgba(103, 126, 234, .2); stroke: #667eea; stroke-width: 2.5; }
.radar-point { fill: #667eea; }
.radar-label { fill: #666; font-size: 13px; text-anchor: middle; dominant-baseline: central; }

/* 轻量视觉优化：不改变原站的信息、流程和控件行为。 */
.welcome-container {
  background:
    radial-gradient(circle at 15% 8%, rgba(99, 102, 241, .09), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(14, 165, 233, .07), transparent 24%),
    linear-gradient(180deg, #f8faff 0%, #f4f7ff 48%, #f8fafc 100%) !important;
}

.top-navbar {
  background: rgba(255, 255, 255, .82) !important;
  border-bottom: 1px solid rgba(99, 102, 241, .09) !important;
  box-shadow: 0 8px 28px rgba(79, 70, 229, .055) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.welcome-card {
  border: 1px solid rgba(99, 102, 241, .1) !important;
  box-shadow: 0 16px 38px rgba(51, 65, 85, .07), 0 2px 8px rgba(99, 102, 241, .04) !important;
}

.certification-badge { box-shadow: inset 0 0 0 1px rgba(5, 150, 105, .08); }
.title-badge { letter-spacing: -.035em; }
.info-card, .purpose-box, .dimensions-box, .notice-section {
  border-color: rgba(99, 102, 241, .1) !important;
}
.info-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, .2) !important;
  box-shadow: 0 12px 25px rgba(79, 70, 229, .09) !important;
}
.dimension-tag { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.start-btn {
  box-shadow: 0 12px 30px rgba(79, 70, 229, .25) !important;
  letter-spacing: .04em;
}

.scl90-questionnaire-page {
  background:
    radial-gradient(circle at 8% 18%, rgba(99, 102, 241, .09), transparent 26%),
    radial-gradient(circle at 92% 74%, rgba(59, 130, 246, .07), transparent 24%),
    #f5f8fc !important;
}
.question-card {
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, .09) !important;
  box-shadow: 0 16px 38px rgba(31, 41, 55, .07) !important;
}
.question-card .card-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, .055), rgba(59, 130, 246, .03)) !important;
  border-bottom-color: rgba(99, 102, 241, .075) !important;
}
.question-dimension-tag { box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .08); }
.progress-bar-container { background: #e9eef7 !important; }
.progress-bar {
  background: linear-gradient(90deg, #6366f1, #3b82f6) !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, .2);
}
.option-item {
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
.option-item:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, .065) !important;
}
.option-item.is-selected {
  background: linear-gradient(135deg, #eef2ff, #eff6ff) !important;
  border-color: #6366f1 !important;
  box-shadow: 0 8px 18px rgba(99, 102, 241, .12) !important;
  transform: translateX(3px) scale(1.005) !important;
}
.option-item.is-selected .radio-circle {
  border-color: #6366f1 !important;
}
.option-item.is-selected .radio-circle.is-checked {
  background: #6366f1 !important;
  transform: scale(1.08);
}
.option-item.is-selected .radio-dot {
  transform: scale(1) !important;
}
.btn-next, .btn-submit {
  background: linear-gradient(135deg, #6366f1, #3b82f6) !important;
  box-shadow: 0 7px 16px rgba(99, 102, 241, .18) !important;
}
.question-grid {
  border: 1px solid rgba(99, 102, 241, .09) !important;
  box-shadow: 0 12px 28px rgba(31, 41, 55, .065) !important;
}

.scl90-report-v2 {
  background:
    radial-gradient(circle at 8% 6%, rgba(103, 126, 234, .08), transparent 24%),
    linear-gradient(180deg, #f7f8ff 0%, #f7fafc 100%) !important;
}
.scl90-report-v2 .report-card {
  border: 1px solid rgba(103, 126, 234, .085) !important;
  box-shadow: 0 10px 26px rgba(51, 65, 85, .055) !important;
}
.scl90-report-v2 .section-title {
  position: relative;
  padding-left: 15px;
}
.scl90-report-v2 .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: .22em;
  width: 4px;
  height: 1em;
  border-radius: 999px;
  background: linear-gradient(180deg, #667eea, #8b5cf6);
}
.scl90-report-v2 .factor-card,
.scl90-report-v2 .analysis-wrapper { transition: transform .2s ease, box-shadow .2s ease; }
.scl90-report-v2 .factor-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(103, 126, 234, .08); }

@media (max-width: 640px) {
  .dialog-shell { padding: 10px; }
  .local-toast { min-width: 0; width: calc(100vw - 32px); }
  .radar-svg { min-height: 280px; }
  .welcome-card, .question-card { box-shadow: 0 8px 20px rgba(51, 65, 85, .065) !important; }
  .option-item:hover { transform: none; }
  .option-item.is-selected { transform: scale(1.005) !important; }
}

@media print {
  .scl90-report-v2 { background: #fff !important; }
}
