/* 训练脑区示意图（10 个空间共用） */
.brain-card {
  margin: 14px 0 8px;
  padding: 18px 20px 14px;
  border: 1px solid rgba(115, 86, 180, 0.12);
  border-radius: 20px;
  background: #fbfaff;
}

.brain-head { margin-bottom: 10px; }

.brain-eyebrow {
  margin: 0 0 3px;
  color: #9a7ee0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.brain-card h2 {
  margin: 0;
  color: var(--ink, #2d2a3a);
  font-size: 18px;
  line-height: 1.35;
}

.brain-sub {
  margin: 4px 0 0;
  color: var(--muted, #77738c);
  font-size: 12.5px;
  line-height: 1.6;
}

.brain-body {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.brain-panel {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 400px;
  overflow: hidden;
  border: 1px solid rgba(196, 160, 92, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 176, 96, 0.2), transparent 58%),
    radial-gradient(circle at 50% 46%, rgba(124, 92, 214, 0.12), transparent 66%),
    linear-gradient(155deg, #fdf7ec 0%, #f8f1fb 52%, #f1eaf9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brain-panel svg {
  display: block;
  width: 100%;
  height: auto;
}

.brain-halo {
  fill: none;
  stroke: rgba(184, 150, 92, 0.3);
  stroke-width: 1.1;
}

.brain-panel .zone {
  fill: var(--c);
  stroke: var(--c);
  stroke-width: 1;
  fill-opacity: 0.18;
  stroke-opacity: 0.42;
}

.brain-panel .zone.main { fill-opacity: 0.55; stroke-opacity: 1; stroke-width: 1.6; }
.brain-panel .zone.support { fill-opacity: 0.2; stroke-opacity: 0.44; }
.brain-panel .zone.off { fill-opacity: 0.06; stroke-opacity: 0.18; }

.z-pole { --c: #d9a53f; }
.z-dlpfc { --c: #7c5cd6; }
.z-acc { --c: #d85f6a; }
.z-parietal { --c: #4fa585; }
.z-temporal { --c: #3f9fa8; }
.z-mpfc { --c: #4e86d8; }
.z-ofc { --c: #e08a4f; }

/* 描边层：只描边不填充，压在主文字下方做对比，避免依赖 paint-order */
.brain-panel .zone-halo {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4.2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}

.brain-panel .zone-halo.support-halo {
  stroke: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  font-weight: 500;
}
.brain-panel .zone-halo.off-halo {
  stroke: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  font-weight: 500;
}

.brain-panel .zone-label {
  fill: #2f2547;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}

.brain-panel .zone-label.support-label {
  fill: rgba(47, 37, 71, 0.7);
  font-size: 12.5px;
  font-weight: 500;
}
.brain-panel .zone-label.off-label {
  fill: rgba(47, 37, 71, 0.3);
  font-size: 12.5px;
  font-weight: 500;
}

.brain-panel .zone-nick {
  fill: rgba(47, 37, 71, 0.5);
  font-family: inherit;
  font-size: 9.5px;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.04em;
}

.brain-panel .zone-nick.main-nick { fill: #513a75; font-weight: 650; }
.brain-panel .zone-nick.support-nick { fill: rgba(47, 37, 71, 0.45); }

.brain-side {
  flex: 0 0 208px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.brain-side-group { display: flex; flex-direction: column; gap: 3px; }

.brain-side-tier {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9c96b4;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.brain-side-tier i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9c4d8;
}

.brain-side-tier i.main { background: #8b6fe0; }
.brain-side-tier i.support { background: #8b6fe0; opacity: 0.42; }

.brain-side-names {
  color: #4a455c;
  font-size: 12.5px;
  line-height: 1.6;
}

.brain-note {
  margin: 10px 0 0;
  color: #9b96ad;
  font-size: 10.5px;
  line-height: 1.65;
}

.brain-note b { color: #837c9c; font-weight: 600; }

@media (max-width: 620px) {
  .brain-card {
    margin: 12px 0 8px;
    padding: 14px 14px 11px;
    border-radius: 18px;
  }
  .brain-eyebrow,
  .brain-sub { display: none; }
  .brain-head { margin-bottom: 8px; }
  .brain-card h2 { font-size: 15.5px; }
  .brain-body { display: block; }
  .brain-side { display: none; }
  .brain-panel { max-width: none; }
  .brain-note { margin-top: 8px; font-size: 10px; }
}
