/* Dark HTML diagrams: AIGC flow + Soul Studio blueprint */

.diag {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(201, 179, 150, 0.07), transparent 50%),
    rgba(255, 255, 255, 0.025);
  padding: 22px;
}

.diag__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 22px;
  color: #fff;
}

.diag__title em {
  font-style: normal;
  color: var(--c1);
}

/* —— AIGC 8-step loop —— */
.aigc-flow {
  display: grid;
  gap: 16px;
}

.aigc-flow__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}

.aigc-flow__row--back {
  direction: rtl;
}

.aigc-flow__row--back > * {
  direction: ltr;
}

.aigc-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  min-height: 168px;
}

.aigc-step::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--c1);
  font-size: 18px;
  font-weight: 700;
  text-shadow: none;
  opacity: 0.55;
}

.aigc-flow__row--back .aigc-step::after {
  content: '←';
  right: auto;
  left: -12px;
}

.aigc-step:last-child::after {
  display: none;
}

.aigc-step__no {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--step, var(--c1));
  margin-bottom: 12px;
  font-weight: 700;
}

.aigc-step__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--step, var(--c1));
}

.aigc-step__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aigc-step h4 {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 650;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.aigc-flow__bridge {
  display: flex;
  justify-content: flex-end;
  padding-right: 12%;
  color: var(--c1);
  font-size: 22px;
  font-weight: 700;
}

.aigc-flow__bridge--up {
  justify-content: flex-start;
  padding-left: 12%;
}

.aigc-step:nth-child(1) { --step: #8eb4d4; }
.aigc-step:nth-child(2) { --step: #a694d0; }
.aigc-step:nth-child(3) { --step: #7aa8cc; }
.aigc-step:nth-child(4) { --step: #d4b06a; }
.aigc-flow__row--back .aigc-step:nth-child(1) { --step: #9a8ad0; }
.aigc-flow__row--back .aigc-step:nth-child(2) { --step: #d0a85c; }
.aigc-flow__row--back .aigc-step:nth-child(3) { --step: #7aa8cc; }
.aigc-flow__row--back .aigc-step:nth-child(4) { --step: #8eb4d4; }

/* —— Soul Studio blueprint —— */
.studio-bp__head {
  margin-bottom: 18px;
}

.studio-bp__head h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(110deg, #e8c888, #c4b4e8 48%, #8eb4d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.studio-bp__head p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
}

.studio-bp__head p b {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.studio-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.studio-pillar {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 12px;
  min-height: 100%;
}

.studio-pillar--core {
  border-color: rgba(176, 138, 74, 0.45);
  background:
    linear-gradient(180deg, rgba(176, 138, 74, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(176, 138, 74, 0.1), 0 12px 30px rgba(0, 0, 0, 0.2);
}

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

.studio-pillar__no {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--p, var(--c1));
  font-weight: 700;
}

.studio-pillar__badge {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(176, 138, 74, 0.14);
  color: #e8c888;
  border: 1px solid rgba(212, 176, 106, 0.4);
}

.studio-pillar h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #fff;
}

.studio-pillar .who {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 8px;
}

.studio-pillar .goal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-pillar dl {
  display: grid;
  gap: 8px;
}

.studio-pillar dt {
  font-size: 11px;
  font-weight: 700;
  color: var(--p, var(--c1));
  margin-bottom: 2px;
}

.studio-pillar dd {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

.studio-pillar:nth-child(1) { --p: #7aa8cc; }
.studio-pillar:nth-child(2) { --p: #d4b06a; }
.studio-pillar:nth-child(3) { --p: #8eb4d4; }
.studio-pillar:nth-child(4) { --p: #a694d0; }

.studio-bottom {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 12px;
}

.studio-block {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.studio-block__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.studio-block__h h4 {
  font-size: 14px;
  color: #fff;
}

.studio-block__h span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.studio-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.studio-type {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  padding: 10px;
}

.studio-type__tag {
  display: inline-flex;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  margin-bottom: 6px;
  font-weight: 600;
}

.studio-type__tag--ok {
  color: #8eb4d4;
  background: rgba(142, 180, 212, 0.12);
  border: 1px solid rgba(142, 180, 212, 0.3);
}

.studio-type__tag--in {
  color: #aeb9c0;
  background: rgba(174, 185, 192, 0.12);
  border: 1px solid rgba(174, 185, 192, 0.3);
}

.studio-type__tag--plan {
  color: #c9b396;
  background: rgba(201, 179, 150, 0.12);
  border: 1px solid rgba(201, 179, 150, 0.3);
}

.studio-type strong {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.35;
}

.studio-type p {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.studio-api .desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 12px;
}

.studio-api__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.studio-api__grid article {
  border-radius: 12px;
  border: 1px solid rgba(201, 179, 150, 0.22);
  background: rgba(201, 179, 150, 0.06);
  padding: 12px 10px;
}

.studio-api__grid h5 {
  font-size: 12px;
  color: #e8c888;
  margin-bottom: 4px;
}

.studio-api__grid p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.4;
}

@media (max-width: 980px) {
  .aigc-flow__row,
  .aigc-flow__row--back,
  .studio-pillars,
  .studio-bottom,
  .studio-types,
  .studio-api__grid {
    grid-template-columns: 1fr 1fr;
  }

  .aigc-flow__row--back {
    direction: ltr;
  }

  .aigc-step::after,
  .aigc-flow__row--back .aigc-step::after {
    display: none;
  }

  .aigc-flow__bridge,
  .aigc-flow__bridge--up {
    display: none;
  }
}

@media (max-width: 640px) {
  .aigc-flow__row,
  .aigc-flow__row--back,
  .studio-pillars,
  .studio-bottom,
  .studio-types {
    grid-template-columns: 1fr;
  }
}

/* —— Push cinematic board —— */
.push-board {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(201, 179, 150, 0.18);
  padding: clamp(28px, 4vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 15% 0%, rgba(201, 179, 150, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 35% at 90% 80%, rgba(174, 185, 192, 0.08), transparent 45%),
    #0a0d11;
}

.push-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(183, 196, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 196, 200, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.push-board > * {
  position: relative;
}

.push-board__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 18px;
}

.push-board__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 22em;
  color: #a0c8e4;
}

.push-board__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 28px;
}

.push-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.push-kpi {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  padding: 18px 16px;
  border-top: 2px solid var(--pk, #c9b396);
}

.push-kpi span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.push-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pk, #d7dde2);
  margin-bottom: 6px;
}

.push-kpi em {
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.push-kpi:nth-child(1) { --pk: #7aa8cc; }
.push-kpi:nth-child(2) { --pk: #8eb4d4; }
.push-kpi:nth-child(3) { --pk: #a694d0; }
.push-kpi:nth-child(4) { --pk: #d4b06a; }

.push-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.push-col {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  padding: 18px 16px;
}

.push-col__no {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--pc, #c9b396);
  margin-bottom: 10px;
}

.push-col h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.push-col > p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 12px;
}

.push-col ul {
  display: grid;
  gap: 8px;
}

.push-col li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  padding-left: 12px;
  position: relative;
  line-height: 1.45;
}

.push-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pc, #c9b396);
}

.push-col:nth-child(1) { --pc: #7aa8cc; }
.push-col:nth-child(2) { --pc: #a694d0; }
.push-col:nth-child(3) { --pc: #d4b06a; }

.push-foot {
  border-radius: 12px;
  border: 1px solid rgba(201, 179, 150, 0.22);
  background: linear-gradient(90deg, rgba(201, 179, 150, 0.08), rgba(174, 185, 192, 0.06));
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.push-foot b {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 900px) {
  .push-kpis,
  .push-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .push-kpis,
  .push-cols {
    grid-template-columns: 1fr;
  }
}

/* —— 情绪频率横版流程图（中轴交错，非表格） —— */
.freq-diagram {
  margin: 4px 0 8px;
  padding: 22px 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(122, 168, 204, 0.08), transparent 70%),
    rgba(10, 13, 17, 0.5);
}

.freq-diagram__process {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 6px;
  margin-bottom: 10px;
}

.freq-diagram__process b {
  font-weight: 600;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 168, 204, 0.35);
  background: rgba(122, 168, 204, 0.12);
  color: rgba(230, 240, 250, 0.92);
}

.freq-diagram__process i {
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
}

.freq-diagram__process i::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.32);
}

.freq-diagram__logic {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.freq-diagram__stage {
  position: relative;
  min-height: 340px;
  padding: 8px 8px 4px;
}

.freq-diagram__axis-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.freq-diagram__axis-label--l { left: 0; }
.freq-diagram__axis-label--r { right: 0; }

.freq-diagram__rail {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #7cbc8a,
    #5eb8b0,
    #7aa8cc,
    #9a8ad0,
    #d0a85c,
    #c49ab8,
    #c07070
  );
  box-shadow: 0 0 18px rgba(122, 168, 204, 0.25);
}

.freq-diagram__rail::before,
.freq-diagram__rail::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 7px solid transparent;
}

.freq-diagram__rail::before {
  left: -10px;
  margin-top: -7px;
  border-right-color: #7cbc8a;
}

.freq-diagram__rail::after {
  right: -10px;
  margin-top: -7px;
  border-left-color: #c07070;
}

.freq-diagram__nodes {
  list-style: none;
  margin: 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  min-height: 340px;
  align-items: center;
}

.freq-node {
  position: relative;
  height: 100%;
  min-height: 320px;
}

.freq-node__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--fc);
  border: 3px solid #0a0d11;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc) 40%, transparent);
  z-index: 3;
}

.freq-node__box {
  position: absolute;
  left: 50%;
  width: calc(100% + 4px);
  max-width: 150px;
  transform: translateX(-50%);
  padding: 10px 10px 11px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--fc) 18%, #0a0d11),
    rgba(10, 13, 17, 0.92)
  );
  text-align: center;
  z-index: 2;
}

.freq-node__box::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(
    var(--stem-dir, to bottom),
    color-mix(in srgb, var(--fc) 65%, transparent),
    transparent
  );
}

.freq-node--up .freq-node__box {
  bottom: calc(50% + 22px);
  --stem-dir: to bottom;
}

.freq-node--up .freq-node__box::after {
  top: 100%;
  height: 20px;
}

.freq-node--down .freq-node__box {
  top: calc(50% + 22px);
  --stem-dir: to top;
}

.freq-node--down .freq-node__box::after {
  bottom: 100%;
  height: 20px;
}

.freq-node__lv {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--fc) 70%, white);
}

.freq-node__box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #f2f4f7;
  margin-bottom: 6px;
}

.freq-node__box em {
  display: block;
  font-style: normal;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
}

.freq-node--risk .freq-node__box {
  border-style: dashed;
}

.freq-diagram__close {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(122, 168, 204, 0.28);
  background: rgba(122, 168, 204, 0.08);
  text-align: center;
}

.freq-diagram__path {
  margin: 0 0 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.freq-diagram__end {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.freq-diagram__end b {
  margin-right: 8px;
  color: #cfe2f2;
}

@media (max-width: 1100px) {
  .freq-diagram__stage {
    min-height: 0;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .freq-diagram__nodes {
    width: 980px;
    margin: 0 auto;
  }

  .freq-diagram__axis-label {
    display: none;
  }
}

@media (max-width: 720px) {
  .freq-diagram__process i {
    display: none;
  }

  .freq-diagram__nodes {
    width: 100%;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 12px;
    padding: 0;
  }

  .freq-node {
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 12px;
    align-items: start;
  }

  .freq-node__dot {
    position: static;
    margin: 10px 0 0;
  }

  .freq-node__box {
    position: static;
    transform: none;
    max-width: none;
    width: auto;
    text-align: left;
  }

  .freq-node__box::after {
    display: none;
  }

  .freq-diagram__rail {
    display: none;
  }

  .freq-diagram__close {
    border-radius: 14px;
  }
}
