.article {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 56px) 24px;
}
.article__head { max-width: 840px; }
.article__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.18;
  letter-spacing: -1px;
}
.article__lede {
  max-width: 46em;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: #6d788a;
}
.article__meta span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(110, 231, 183, .7);
  vertical-align: 1px;
}

/* ---------- 动画舞台 ---------- */
.stage {
  margin: 28px 0 0;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  box-shadow: 0 40px 90px -60px rgba(77, 214, 255, .35);
  overflow: hidden;
}
.stage__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.stage__badge {
  flex: none;
  padding: 4px 9px;
  border: 1px solid rgba(77, 214, 255, .3);
  border-radius: 999px;
  background: rgba(77, 214, 255, .08);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cyan);
}
.stage__title {
  font-size: 13.5px;
  font-weight: 600;
}
.pressure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.pressure__bar {
  display: block;
  width: 86px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.pressure__bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--amber), #ff5722);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .12s linear;
}
.pressure__num {
  min-width: 32px;
  text-align: right;
  color: #c9d3e1;
}

.stage__canvas-wrap {
  position: relative;
  background: #0b0e15;
}
#volcano {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 640;
}
.legend {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  background: rgba(6, 8, 12, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 10px;
  color: #93a0b2;
  pointer-events: none;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
}

.stage__desc {
  min-height: 78px;
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 13.5px;
  line-height: 1.8;
  color: #c4cddc;
}
.stage__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
}
.btn--sm {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 12.5px;
}
.sound-btn.is-on {
  color: var(--mint);
  border-color: rgba(110, 231, 183, .42);
  background: rgba(110, 231, 183, .08);
}
.progress {
  display: flex;
  flex: 1 1 140px;
  gap: 5px;
  min-width: 120px;
  margin-left: auto;
}
.progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- 阶段选择 ---------- */
.phases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.phase {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.phase:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .22);
}
.phase:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.phase__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .5px;
  color: #5d6979;
}
.phase__title {
  margin: 8px 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
.phase__desc {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.phase.is-active {
  border-color: rgba(110, 231, 183, .42);
  background: rgba(110, 231, 183, .07);
  box-shadow: 0 18px 44px -34px rgba(110, 231, 183, .9);
}
.phase.is-active .phase__num { color: var(--mint); }

/* ---------- 补充知识 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.fact {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
}
.fact h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.fact p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 生成提示词 ---------- */
.prompt-note {
  margin: 32px 0 8px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 16px;
  background: linear-gradient(180deg, #151a24, #0c0f16);
  overflow: hidden;
}
.prompt-note__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.prompt-note__body {
  margin: 0;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: #c9d3e1;
  word-break: break-word;
}
.prompt-note__body span {
  margin-right: 4px;
  color: var(--mint);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .stage__desc { min-height: 0; }
}
@media (max-width: 640px) {
  .stage__top { flex-wrap: wrap; }
  .stage__title { flex: 1 1 100%; order: 3; }
  .phases { grid-template-columns: 1fr; gap: 8px; }
  .phase__desc { display: none; }
  .phase__title { margin-bottom: 0; }
  .pressure__label { display: none; }
  .pressure__bar { width: 60px; }
  .legend {
    position: static;
    justify-content: center;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-radius: 0;
    background: rgba(255, 255, 255, .02);
  }
  .stage__controls .btn { flex: 0 0 auto; }
  .progress { order: 5; flex-basis: 100%; }
}
