/* ============================================================
   传承学院 · 家族传承健康度测评（Customer Onboarding Assessment）
   数据源：家族传承健康度打分表（客户初诊问卷 V1.0，54 题）
   ============================================================ */

.asm-view[hidden] { display: none; }

/* ---------- 视图一：引导页 ---------- */
.asm-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.asm-feature-card {
  text-align: center;
  padding: 24px 16px;
}
.asm-feature-card .asm-feature-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.asm-feature-card h4 {
  font-size: .95rem;
  margin-bottom: 6px;
}
.asm-feature-card p {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.asm-scale-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.asm-scale-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-secondary);
}
.asm-scale-badge {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
}
.asm-scale-item:nth-child(1) .asm-scale-badge { background: var(--red); }
.asm-scale-item:nth-child(2) .asm-scale-badge { background: var(--amber); }
.asm-scale-item:nth-child(3) .asm-scale-badge { background: #c9a227; }
.asm-scale-item:nth-child(4) .asm-scale-badge { background: var(--primary); }
.asm-scale-item:nth-child(5) .asm-scale-badge { background: var(--green); }
.asm-start-wrap {
  text-align: center;
  margin-top: 32px;
}
.asm-start-btn {
  font-size: 1.05rem;
  padding: 14px 56px;
  border-radius: 999px;
}
.asm-start-note {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ---------- 视图二：答题页 ---------- */
.asm-progress-wrap {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: var(--bg);
  padding: 8px 0 12px;
}
.asm-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
#asm-progress-text { font-weight: 600; color: var(--text); }
.asm-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--border-light);
  overflow: hidden;
}
.asm-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width .3s ease;
}
.asm-dim-banner {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 8px 0 16px;
  animation: asmFadeIn .35s ease;
}
.asm-dim-banner .asm-dim-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.asm-dim-banner .asm-dim-title em {
  font-style: normal;
  font-weight: 500;
  font-size: .78rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.asm-dim-banner .asm-dim-desc {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.asm-qcard {
  padding: 28px 24px 24px;
  animation: asmFadeIn .25s ease;
}
@keyframes asmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.asm-qnum {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.asm-qtext {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 22px;
  min-height: 3.4em;
}
.asm-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.asm-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 14px 8px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  font-family: var(--font);
}
.asm-option:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.asm-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.asm-option .asm-option-score {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.asm-option.selected .asm-option-score { color: var(--accent); }
.asm-option .asm-option-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.asm-option .asm-option-hint {
  display: block;
  font-size: .68rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.asm-quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.asm-quiz-hint {
  font-size: .75rem;
  color: var(--text-muted);
}
#asm-prev:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ---------- 视图三：诊断报告 ---------- */
.asm-score-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  border-top: 3px solid var(--accent);
  margin-bottom: 24px;
}
.asm-score-num {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.asm-score-num span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}
.asm-score-caption {
  margin-top: 8px;
  font-size: .82rem;
  color: var(--text-muted);
}
.asm-score-right { flex: 1; }
.asm-grade-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.asm-grade-a { background: var(--green); }
.asm-grade-b { background: var(--primary); }
.asm-grade-c { background: var(--amber); }
.asm-grade-d { background: var(--red); }
.asm-score-right p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.asm-radar-card { margin-bottom: 24px; }
.asm-radar-card h3, .asm-dims-card h3 { margin-bottom: 16px; }
.asm-radar-wrap {
  max-width: 460px;
  margin: 0 auto;
}
.asm-bar-row { margin-bottom: 16px; }
.asm-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.asm-bar-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.asm-bar-name em {
  font-style: normal;
  font-weight: 400;
  font-size: .75rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.asm-bar-score {
  font-size: .9rem;
  font-weight: 700;
}
.asm-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--border-light);
  overflow: hidden;
}
.asm-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .6s ease;
}
.asm-bar-status {
  margin-top: 4px;
  font-size: .72rem;
  color: var(--text-muted);
}
.asm-services-title {
  margin: 32px 0 16px;
  text-align: center;
}
.asm-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.asm-service-card { position: relative; }
.asm-service-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.asm-service-tag.urgent { background: var(--red-light); color: var(--red); }
.asm-service-tag.improve { background: #fdf3e0; color: #b07514; }
.asm-service-tag.watch { background: var(--primary-light); color: var(--primary); }
.asm-service-card h4 { font-size: .95rem; margin-bottom: 8px; }
.asm-service-card p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.asm-next-card {
  text-align: center;
  border-top: 3px solid var(--primary);
  padding: 32px 24px;
}
.asm-next-card h3 { margin-bottom: 10px; }
.asm-next-card p {
  font-size: .86rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 20px;
}
.asm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .asm-feature-grid { grid-template-columns: 1fr; }
  .asm-services-grid { grid-template-columns: 1fr; }
  .asm-score-hero { flex-direction: column; text-align: center; gap: 16px; }
  .asm-options { grid-template-columns: 1fr; }
  .asm-option {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 16px;
  }
  .asm-option .asm-option-score { margin-bottom: 0; font-size: 1.1rem; }
  .asm-option .asm-option-hint { display: inline; margin-left: 6px; }
  .asm-progress-wrap { top: 56px; }
}
