/* 九型人格测试报告样式：纯中文、动态人格主色、九芒星与深度折叠报告 */

.ennea-report {
  --type-color: #a67432;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 01 主导类型主卡 */
.ennea-hero {
  padding: 13px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--type-color) 26%, #e4ded2);
  border-top: 3.5px solid var(--type-color);
  border-radius: 17px;
  background:
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--type-color) 11%, transparent), transparent 48%),
    linear-gradient(165deg, #ffffff 0%, #f8f6f1 100%);
  box-shadow: 0 12px 26px -20px rgba(30, 44, 58, 0.22);
  text-align: center;
}

.ennea-hero__eyebrow {
  display: inline-block;
  padding: 2.5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--type-color) 12%, #ffffff);
  color: var(--type-color);
  font-size: 10px;
  font-weight: 800;
}

.ennea-hero__title-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
}

.ennea-hero__num {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--type-color);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  align-self: center;
}

.ennea-hero__name {
  margin: 0;
  color: #1e2c3a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
}

.ennea-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
}

.ennea-hero__pills span {
  padding: 2.5px 9px;
  border: 1px solid #e4ded2;
  border-radius: 999px;
  background: #ffffff;
  color: #495867;
  font-size: 10.5px;
  font-weight: 700;
}

.ennea-hero__desc {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid #ebe5d9;
  color: #2f3e4d;
  font-size: 11.5px;
  line-height: 1.54;
  text-align: left;
}

.ennea-hero__df {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.ennea-hero__df div {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #ebe5d9;
  text-align: left;
}

.ennea-hero__df span {
  display: block;
  color: #7c8791;
  font-size: 9.5px;
  font-weight: 700;
}

.ennea-hero__df strong {
  display: block;
  margin-top: 2px;
  color: #1e2c3a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.38;
}

/* 通用卡片 */
.ennea-card {
  padding: 12px;
  border: 1px solid #e4ded2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 22px -20px rgba(30, 44, 58, 0.16);
}

.ennea-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.ennea-card__head h3 {
  margin: 0;
  color: #1e2c3a;
  font-size: 14px;
  font-weight: 800;
}

.ennea-card__sub {
  flex: none;
  padding: 2.5px 8.5px;
  border-radius: 999px;
  background: #f5efe4;
  color: #8f6226;
  font-size: 10px;
  font-weight: 700;
}

/* 02 九芒星 + 9型分布条 */
.ennea-star-svg {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 4px;
}

.ennea-star-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 9px;
  color: #5b6c7d;
  font-size: 10px;
  font-weight: 700;
}

.ennea-star-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ennea-star-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ennea-star-legend b {
  display: inline-block;
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
}

.ennea-bars {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed #e6dfd3;
}

.ennea-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ennea-bar__code {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 22px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--bar-color) 12%, #ffffff);
  color: var(--bar-color);
  font-size: 10.5px;
  font-weight: 800;
}

.ennea-bar.is-top .ennea-bar__code {
  background: var(--bar-color);
  color: #ffffff;
}

.ennea-bar__main {
  flex: 1;
  min-width: 0;
}

.ennea-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.ennea-bar__head strong {
  color: #1e2c3a;
  font-size: 11.5px;
  font-weight: 700;
}

.ennea-bar__head span {
  color: #65717d;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ennea-bar__track {
  height: 5px;
  margin-top: 3px;
  border-radius: 999px;
  background: #f0ece4;
  overflow: hidden;
}

.ennea-bar__track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--bar-color);
}

/* 03 压力与成长方向 */
.ennea-shifts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ennea-shift {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e6dfd3;
}

.ennea-shift--stress {
  background: #fdf6f5;
  border-color: rgba(184, 66, 66, 0.22);
}

.ennea-shift--growth {
  background: #f3f9f6;
  border-color: rgba(46, 139, 87, 0.22);
}

.ennea-shift__badge {
  display: inline-block;
  margin-bottom: 5px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
}

.ennea-shift--stress .ennea-shift__badge {
  background: rgba(184, 66, 66, 0.12);
  color: #a63737;
}

.ennea-shift--growth .ennea-shift__badge {
  background: rgba(46, 139, 87, 0.12);
  color: #247548;
}

.ennea-shift strong {
  display: block;
  color: #1e2c3a;
  font-size: 12.5px;
  font-weight: 800;
}

.ennea-shift p {
  margin: 4px 0 0;
  color: #495867;
  font-size: 11px;
  line-height: 1.5;
}

/* 04 发展建议 */
.ennea-advice-list {
  display: grid;
  gap: 8px;
}

.ennea-advice-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #faf8f4;
  border: 1px solid #e9e3d7;
}

.ennea-advice-item__no {
  flex: none;
  padding: 2px 6.5px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--type-color) 14%, #ffffff);
  color: var(--type-color);
  font-size: 10px;
  font-weight: 800;
}

.ennea-advice-item h4 {
  margin: 0 0 3px;
  color: #1e2c3a;
  font-size: 12.5px;
  font-weight: 800;
}

.ennea-advice-item p {
  margin: 0;
  color: #495867;
  font-size: 11.5px;
  line-height: 1.54;
}

/* 05 深度人格报告（折叠手风琴） */
.ennea-deep-list {
  display: grid;
  gap: 7px;
}

.ennea-deep-item {
  border: 1px solid #e6dfd3;
  border-radius: 12px;
  background: #fbfaf7;
  overflow: hidden;
}

.ennea-deep-item summary {
  padding: 10px 12px;
  color: #1e2c3a;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ennea-deep-item summary::after {
  content: "＋";
  color: var(--type-color);
  font-size: 13px;
  font-weight: 800;
}

.ennea-deep-item[open] summary::after {
  content: "－";
}

.ennea-deep-item__body {
  padding: 0 12px 10px;
  border-top: 1px dashed #e6dfd3;
  display: grid;
  gap: 8px;
}

.ennea-deep-row {
  padding-top: 8px;
}

.ennea-deep-row strong {
  display: block;
  color: var(--type-color);
  font-size: 11.5px;
  font-weight: 800;
}

.ennea-deep-row p {
  margin: 3px 0 0;
  color: #364554;
  font-size: 11.5px;
  line-height: 1.56;
}
