/* 星焰凤凰 · 学习伙伴页
   整页一张深色星台卡片：3D 区域占满卡片宽度，所有信息在模型下方依次排开。 */
.view.view-phoenix { max-width: 1120px; padding: 16px 22px 48px; }
.pxp-page { width: 100%; }

.pxp-card {
  position: relative; overflow: hidden;
  border: 1px solid #3d2c55; border-radius: 20px;
  color: #f5eeff; color-scheme: dark;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 86, 170, .22), transparent 58%),
    linear-gradient(170deg, #2b1d40 0%, #241733 46%, #1b1128 100%);
  box-shadow: 0 18px 44px rgba(35, 23, 52, .28);
}

/* ---------- 卡片头 ---------- */
.pxp-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 20px 28px 6px;
}
.pxp-eyebrow {
  margin: 0 0 4px; font: 600 11px/1.4 var(--font);
  letter-spacing: .18em; text-transform: uppercase; color: #c9a9bd;
}
.pxp-head h1 { margin: 0; font: 600 24px/1.2 var(--font); letter-spacing: .04em; color: #f5eeff; }
.pxp-stage-no {
  flex: 0 0 auto; margin-top: 4px;
  font: 600 11px/1 var(--font); letter-spacing: .12em;
  color: #f0c98f; background: rgba(240, 201, 143, .12);
  border: 1px solid rgba(240, 201, 143, .38);
  border-radius: 999px; padding: 7px 12px;
}

/* ---------- 3D 星台 ---------- */
.pxp-stage {
  position: relative; width: 100%;
  height: clamp(400px, 52vh, 600px);
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(233, 150, 90, .30), transparent 62%),
    radial-gradient(ellipse at 18% 6%, rgba(120, 90, 160, .30), transparent 55%);
}
.pxp-stage canvas {
  width: 100%; height: 100%; display: block; position: relative; z-index: 1;
  touch-action: pan-y;
}
.pxp-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle, rgba(255, 228, 196, .6) .7px, transparent 1px),
    radial-gradient(circle, rgba(231, 181, 85, .45) .6px, transparent 1px);
  background-size: 83px 79px, 137px 111px;
  background-position: 11px 16px, 44px 38px;
}
.pxp-rotate-hint {
  position: absolute; left: 0; right: 0; bottom: 9px; z-index: 2;
  text-align: center; pointer-events: none;
  color: rgba(238, 216, 190, .72); font-size: 11.5px; letter-spacing: .04em;
}
.pxp-error {
  position: absolute; inset: 22% 12%; z-index: 3; display: flex; align-items: center;
  justify-content: center; text-align: center; color: #f5e9d8; font-size: 13px;
  background: rgba(28, 18, 41, .7); border-radius: 12px; padding: 14px;
}

/* ---------- 相机与提示 ---------- */
.pxp-camera {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
  padding: 12px 20px 2px;
}
.pxp-touch-label {
  margin: 0; padding: 8px 26px 16px; text-align: center;
  color: #e8cfa8; font-size: 12.5px; min-height: 24px;
}

/* ---------- 按钮 ---------- */
.pxp-btn {
  border: 1px solid #5a4070; background: #37224e;
  color: #f5eeff; border-radius: 9px; padding: 9px 14px; min-height: 40px;
  font-size: 13px; line-height: 1; transition: background .15s, border-color .15s, color .15s;
}
.pxp-btn:hover { background: #4a3066; }
.pxp-btn:active { transform: scale(.98); }
.pxp-btn:disabled { opacity: .42; cursor: default; pointer-events: none; }
.pxp-btn[aria-pressed="true"] { background: #5d4179; border-color: #d9b6df; }
.pxp-btn.primary {
  background: #f0c98f; border-color: transparent; color: #3d2a1e;
  font-weight: 600; box-shadow: 0 3px 14px rgba(240, 201, 143, .22);
}
.pxp-btn.primary:hover { background: #f8ddb0; }

/* ---------- 模型下方信息 ---------- */
.pxp-body {
  display: grid; gap: 14px;
  padding: 4px 28px 24px;
}
.pxp-name { margin: 0 0 4px; font: 600 25px/1.25 var(--font); letter-spacing: .03em; color: #f5eeff; }
.pxp-line { margin: 0; color: #cdb8dd; font-size: 13.5px; }

.pxp-progress { padding-top: 4px; }
.pxp-next { margin: 0 0 8px; font-size: 12.5px; color: #b39cc0; }
.pxp-next b { color: #f5eeff; font-weight: 600; }
.pxp-pbar {
  height: 9px; border-radius: 999px; background: #3a2a52;
  border: 1px solid #4a3763; overflow: hidden;
}
.pxp-pbar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #d99e4e, #f3d59a);
  border-radius: 999px; transition: width .5s ease;
}
.pxp-reqs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.pxp-reqs li {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: #d8c8e8;
}
.pxp-reqs li .tick {
  width: 19px; height: 19px; flex: 0 0 19px; border-radius: 50%;
  border: 1px solid #6a5384; color: transparent;
  font-size: 11px; line-height: 17px; text-align: center;
}
.pxp-reqs li b { margin-left: auto; font-weight: 600; color: #b39cc0; font-variant-numeric: tabular-nums; }
.pxp-reqs li.done { color: #f7e6c8; }
.pxp-reqs li.done .tick { background: #f0c98f; border-color: #f0c98f; color: #3d2a1e; }
.pxp-reqs li.done b { color: #f0c98f; }
.pxp-req-mode { margin: 8px 0 0; font-size: 11.5px; color: #9c86ad; }

.pxp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pxp-actions .pxp-btn.primary { flex: 1 1 auto; min-width: 160px; }

.pxp-status {
  min-height: 34px; font-size: 12.5px; color: #e9d7c2;
  background: rgba(255, 255, 255, .06); border-radius: 9px; padding: 8px 12px;
}

.pxp-features { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pxp-features h3,
.pxp-history-wrap h3 {
  margin: 0 0 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .05em; color: #9c86ad;
}
.pxp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pxp-chip {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid #4a3763; color: #cab6dc; background: transparent;
}
.pxp-chip.on {
  border-color: rgba(240, 201, 143, .65);
  color: #f6dcae; background: rgba(240, 201, 143, .13); font-weight: 600;
}
.pxp-chip.off { color: #9b87ae; border-style: dashed; }

.pxp-history-wrap { display: grid; gap: 2px; }
.pxp-history { display: flex; flex-wrap: wrap; gap: 6px; }
.pxp-history-btn {
  border: 1px solid #55396b; background: transparent; color: #d0bcd8;
  border-radius: 7px; padding: 6px 10px; min-height: 36px; font-size: 11px;
}
.pxp-history-btn[aria-pressed="true"] { border-color: #f0c98f; color: #f6dcae; background: rgba(240, 201, 143, .10); }
.pxp-history-btn:disabled { color: #6f5c80; border-color: #3f2d54; }

.pxp-costumes {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.pxp-costumes label { color: #9c86ad; font-size: 12px; }
.pxp-costumes select {
  background: #37224e; color: #f5eeff; border: 1px solid #5a4070;
  border-radius: 8px; padding: 8px 11px; min-height: 38px;
  font: inherit; font-size: 12.5px;
}

.pxp-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #b39cc0; font-size: 11.5px;
}

@media (max-width: 700px) {
  .view.view-phoenix { padding: 12px 12px 40px; }
  .pxp-card { border-radius: 16px; }
  .pxp-head { padding: 16px 18px 4px; }
  .pxp-head h1 { font-size: 21px; }
  .pxp-stage { height: clamp(360px, 52vh, 520px); }
  .pxp-camera { padding: 10px 12px 0; }
  .pxp-camera .pxp-btn { padding: 8px 10px; font-size: 12px; min-height: 40px; }
  .pxp-touch-label { padding: 7px 16px 14px; }
  .pxp-body { padding: 2px 18px 20px; gap: 12px; }
  .pxp-name { font-size: 22px; }
  .pxp-actions .pxp-btn.primary { flex: 1 1 100%; }
}
