/* ============================================================
   AI Pose Lab (A group, 2026-10-29)
   ============================================================ */

.pl-page {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 16px calc(var(--nav-height, 62px) + 30px + env(safe-area-inset-bottom, 0px));
  color: #f7fffc;
}

.pl-page::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 32% at 50% 8%, rgba(50, 189, 134, .18), transparent 72%),
    radial-gradient(ellipse 38% 28% at 88% 38%, rgba(124, 92, 255, .12), transparent 74%),
    radial-gradient(ellipse 50% 30% at 6% 72%, rgba(255, 158, 88, .08), transparent 78%);
}

@media (min-width: 900px) {
  #app:has(.pl-page) { max-width: none; }
  .pl-page { padding-top: 26px; }
}

.pl-page button,
.pl-page a { -webkit-tap-highlight-color: transparent; }

.pl-hero,
.pl-step,
.pl-compose,
.pl-generating,
.pl-result,
.pl-error-card {
  position: relative;
}

.pl-hero {
  min-height: 510px;
  padding: 34px 22px 24px;
  border-radius: 30px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(16, 38, 33, .94), rgba(8, 16, 20, .96) 58%, rgba(27, 19, 42, .96)),
    #0b1113;
  border: 1px solid rgba(134, 255, 211, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.pl-hero::after {
  content: '';
  position: absolute;
  inset: -40% -55% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 189, 134, .24), transparent 66%);
  pointer-events: none;
}

.pl-hero-kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(107, 255, 203, .25);
  background: rgba(50, 189, 134, .09);
  color: #83f3c3;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .19em;
}

.pl-hero h1 {
  position: relative;
  z-index: 2;
  margin: 18px auto 12px;
  max-width: 540px;
  color: #fff;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 900;
}

.pl-hero h1 em {
  color: #79efbd;
  font-style: normal;
  text-shadow: 0 0 34px rgba(50, 189, 134, .28);
}

.pl-hero > p {
  position: relative;
  z-index: 2;
  max-width: 470px;
  margin: 0 auto 20px;
  color: rgba(235, 255, 249, .62);
  font-size: .9rem;
  line-height: 1.7;
}

.pl-hero-visual {
  position: relative;
  z-index: 2;
  width: min(360px, 88vw);
  height: 218px;
  margin: 8px auto 18px;
}

.pl-hero-shot {
  position: absolute;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(130, 255, 210, .18);
  background: linear-gradient(155deg, rgba(57, 111, 94, .42), rgba(8, 20, 21, .88));
  box-shadow: 0 20px 48px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.pl-hero-shot img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px 10px 26px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35));
}
.pl-hero-shot span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  color: rgba(180, 255, 229, .72);
  font-size: .45rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-align: center;
  white-space: nowrap;
}
.pl-shot-front {
  left: 50%;
  top: 3px;
  z-index: 3;
  width: 138px;
  height: 196px;
  transform: translateX(-48%) rotate(2.5deg);
  animation: plFloat 6s ease-in-out infinite;
}
.pl-shot-back {
  left: 40px;
  top: 28px;
  width: 122px;
  height: 168px;
  opacity: .54;
  transform: rotate(-9deg);
  animation: plFloat 7s ease-in-out infinite -1.4s;
}
.pl-shot-back span { display: none; }
.pl-hero-orbit {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 188px;
  height: 188px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px dashed rgba(116, 255, 208, .2);
  box-shadow: 0 0 52px rgba(50, 189, 134, .16);
  animation: plOrbit 24s linear infinite;
}

.pl-hero-glow {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 230px;
  height: 84px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(50, 189, 134, .2);
  filter: blur(30px);
}

@keyframes plFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
@keyframes plOrbit {
  to { rotate: 360deg; }
}

.pl-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 12px;
  margin-top: 16px;
  color: rgba(229, 255, 247, .46);
  font-size: .66rem;
  line-height: 1.45;
}

.pl-primary-btn,
.pl-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease, opacity .18s ease;
}

.pl-primary-btn {
  color: #04251b;
  border: 1px solid rgba(165, 255, 222, .5);
  background: linear-gradient(135deg, #8ff8ca, #32bd86 58%, #22a874);
  box-shadow: 0 10px 28px rgba(50, 189, 134, .25), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.pl-primary-btn:active,
.pl-secondary-btn:active { transform: scale(.975); }

.pl-primary-btn:disabled {
  cursor: default;
  opacity: .48;
  filter: grayscale(.25);
}

.pl-secondary-btn {
  color: rgba(246, 255, 252, .9);
  border: 1px solid rgba(149, 255, 219, .2);
  background: rgba(20, 39, 35, .8);
}

.pl-wide { width: 100%; }

.pl-hero > .pl-primary-btn { position: relative; z-index: 2; width: min(100%, 390px); }
.pl-hero > .pl-secondary-btn { position: relative; z-index: 2; width: min(100%, 390px); margin-top: 9px; }

.pl-recent {
  margin-top: 22px;
}

.pl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 3px;
  color: rgba(244, 255, 251, .84);
  font-size: .82rem;
}

.pl-section-head span { color: rgba(244, 255, 251, .38); font-size: .7rem; }

.pl-recent-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}

.pl-recent-scroll::-webkit-scrollbar { display: none; }

.pl-recent-card {
  flex: 0 0 92px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
}

.pl-recent-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pl-step { min-width: 0; max-width: 100%; padding: 18px 2px 8px; }

.pl-step-head { margin: 2px 2px 20px; }
.pl-step-head > span {
  display: block;
  margin-bottom: 8px;
  color: #64e8b0;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.pl-step-head h2 { margin: 0 0 7px; font-size: 1.42rem; line-height: 1.18; letter-spacing: -.03em; }
.pl-step-head p { margin: 0; color: rgba(232, 252, 245, .54); font-size: .8rem; line-height: 1.65; }

.pl-mode-card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 142px;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
  padding: 15px 17px;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  text-align: left;
  border: 1px solid rgba(128, 255, 207, .15);
  background: linear-gradient(140deg, rgba(22, 45, 38, .9), rgba(11, 22, 24, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 38px rgba(0, 0, 0, .18);
  cursor: pointer;
}
.pl-mode-card::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 21, 19, .96) 0%, rgba(9, 21, 19, .82) 48%, rgba(9, 21, 19, .02) 100%);
}

.pl-mode-card:active { transform: scale(.985); }
.pl-mode-couple { background: linear-gradient(140deg, rgba(47, 33, 57, .9), rgba(20, 16, 27, .95)); }
.pl-mode-couple::after { background: linear-gradient(90deg, rgba(24, 17, 31, .97) 0%, rgba(24, 17, 31, .8) 48%, rgba(24, 17, 31, .02) 100%); }
.pl-mode-art {
  position: absolute;
  z-index: 0;
  right: -2px;
  bottom: -26px;
  width: auto;
  height: 182px;
  opacity: .92;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45));
  pointer-events: none;
}
.pl-mode-couple .pl-mode-art { height: 166px; opacity: .9; }
.pl-mode-kicker {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 17px;
  color: #6ff0bc;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.pl-mode-couple .pl-mode-kicker { color: #d7adf8; }
.pl-mode-copy { position: relative; z-index: 2; display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; padding-top: 13px; max-width: 68%; }
.pl-mode-copy b { font-size: 1.02rem; }
.pl-mode-copy em { color: #8ff3c7; font-size: .7rem; font-style: normal; }
.pl-mode-couple .pl-mode-copy em { color: #d8b5f7; }
.pl-mode-copy small { max-width: 230px; color: rgba(239, 255, 249, .48); font-size: .68rem; line-height: 1.45; }
.pl-mode-arrow { position: relative; z-index: 2; color: rgba(255, 255, 255, .32); font-size: 1.15rem; }

.pl-mode-promise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 18px 0 2px;
  padding: 13px 10px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .028);
  border: 1px solid rgba(255, 255, 255, .055);
  color: rgba(236, 255, 249, .56);
  font-size: .65rem;
}
.pl-mode-promise span { display: flex; align-items: center; gap: 5px; }
.pl-mode-promise b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(96, 242, 184, .12); color: #78f1c1; font-size: .5rem; }
.pl-mode-promise i { color: rgba(255, 255, 255, .18); font-style: normal; }

.pl-note {
  margin: 12px 4px 0;
  color: rgba(229, 251, 244, .43);
  font-size: .69rem;
  line-height: 1.6;
}

.pl-upload-box {
  display: flex;
  min-height: 265px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 18px;
  border-radius: 28px;
  border: 1px dashed rgba(120, 255, 203, .34);
  background:
    radial-gradient(circle at 50% 35%, rgba(50, 189, 134, .13), transparent 45%),
    rgba(11, 23, 24, .74);
  text-align: center;
  cursor: pointer;
}
.pl-upload-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 5px;
  border-radius: 22px;
  background: rgba(50, 189, 134, .13);
  font-size: 2rem;
}
.pl-upload-box b { font-size: .98rem; }
.pl-upload-box > span:last-of-type { color: rgba(231, 255, 247, .44); font-size: .68rem; }

.pl-upload-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 3px 18px;
  color: rgba(230, 252, 245, .52);
  font-size: .69rem;
}
.pl-upload-tips span { padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); }

.pl-back-link,
.pl-text-btn {
  padding: 8px 0;
  color: rgba(139, 244, 199, .74);
  background: none;
  border: 0;
  font: inherit;
  font-size: .74rem;
  cursor: pointer;
}

.pl-compose-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.pl-compose-head > div { flex: 1; min-width: 0; text-align: center; }
.pl-compose-head b { display: block; font-size: .9rem; }
.pl-compose-head span { display: block; margin-top: 2px; color: rgba(235, 255, 248, .38); font-size: .63rem; }
.pl-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .045);
  font-size: 1.15rem;
  cursor: pointer;
}

.pl-photo-card { position: relative; }
.pl-canvas {
  position: relative;
  /* 预览框只占一屏的一小段，把空间留给下面的姿势网格；点「⤢」或点照片看大图。 */
  width: min(100%, 340px, calc(44vh * var(--pl-ratio, .75)));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 26px;
  background: #111a1a;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}
.pl-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.pl-canvas-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(244, 255, 251, .76);
  background: rgba(3, 13, 11, .54);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .6rem;
  font-weight: 750;
}

.pl-zoom-btn {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #eafff8;
  background: rgba(3, 13, 11, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: inherit;
  font-size: .88rem;
  line-height: 1;
  cursor: zoom-in;
}
.pl-zoom-btn:active { transform: scale(.94); }

.pl-pose-overlay {
  position: absolute;
  z-index: 2;
  height: 78%;
  width: auto;
  max-width: none;
  transform-origin: center center;
  cursor: grab;
  touch-action: none;
  /* 白模内部现在是原图的 100% 不透明像素，直接盖住照片会看不清自己的脸：
     压到 72% 既保留白模的材质，又能看见底下的人。 */
  opacity: .72;
  /* 白模是浅色，叠在浅色照片上容易糊；外圈补一层极细的深色描边兜底。 */
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)) drop-shadow(0 0 1px rgba(0, 0, 0, .45));
}
.pl-pose-overlay:active { cursor: grabbing; }

.pl-editbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
}
.pl-round-btn,
.pl-reset-btn {
  height: 36px;
  border-radius: 999px;
  color: rgba(248, 255, 252, .86);
  border: 1px solid rgba(141, 255, 209, .16);
  background: rgba(17, 33, 30, .9);
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
}
.pl-round-btn { width: 38px; font-size: 1.08rem; }
.pl-reset-btn { padding: 0 14px; font-size: .67rem; }
.pl-drag-hint { margin: 7px 0 2px; text-align: center; color: rgba(234, 255, 248, .34); font-size: .62rem; }
.pl-warning {
  margin: 9px auto 0;
  padding: 10px 12px;
  max-width: 470px;
  border-radius: 13px;
  color: #ffe3a9;
  border: 1px solid rgba(255, 193, 94, .24);
  background: rgba(107, 67, 10, .22);
  font-size: .69rem;
  line-height: 1.5;
}
.pl-warning[hidden] { display: none; }

.pl-tray { margin-top: 16px; }
.pl-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 2px 10px;
  scrollbar-width: none;
}
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(238, 255, 249, .55);
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .035);
  font: inherit;
  font-size: .69rem;
  font-weight: 750;
  cursor: pointer;
}
.pl-tab.is-on { color: #062a1e; background: #77eebd; border-color: #a1f8d4; }

.pl-pose-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 9px 8px;
  padding: 2px 2px 10px;
}
.pl-pose-card {
  width: 100%;
  padding: 0;
  color: rgba(241, 255, 250, .68);
  text-align: center;
  background: none;
  border: 0;
  font: inherit;
  font-size: .58rem;
  cursor: pointer;
}
.pl-pose-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(145deg, rgba(45, 78, 69, .25), rgba(10, 20, 21, .85));
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pl-pose-thumb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); }
.pl-pose-card.is-on .pl-pose-thumb {
  border-color: #62edb3;
  box-shadow: 0 0 0 2px rgba(98, 237, 179, .22), 0 8px 22px rgba(50, 189, 134, .15);
  transform: translateY(-2px);
}
.pl-skeleton-row,
.pl-empty-poses {
  padding: 18px;
  border-radius: 18px;
  color: rgba(235, 255, 249, .48);
  background: rgba(255, 255, 255, .035);
  font-size: .74rem;
  text-align: center;
}
.pl-empty-poses { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pl-empty-poses b { color: rgba(245, 255, 252, .82); }
.pl-empty-poses span { font-size: .68rem; line-height: 1.5; }
.pl-empty-poses .pl-secondary-btn { min-height: 38px; margin-top: 4px; padding: 0 16px; font-size: .7rem; }

.pl-generate-bar {
  position: sticky;
  z-index: 12;
  bottom: calc(var(--nav-height, 62px) + env(safe-area-inset-bottom, 0px) + 8px);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  padding: 10px;
  border-radius: 22px;
  background: rgba(9, 20, 19, .86);
  border: 1px solid rgba(134, 255, 210, .16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.pl-cost { min-width: 105px; padding-left: 5px; }
.pl-cost b { display: block; color: #8ff3c7; font-size: .82rem; }
.pl-cost span { display: block; margin-top: 2px; color: rgba(235, 255, 248, .42); font-size: .6rem; }
.pl-generate-btn { flex: 1; min-height: 48px; padding: 0 14px; font-size: .82rem; }

.pl-generating .pl-photo-card { margin-bottom: 16px; }
.pl-generating .pl-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(115deg, transparent 30%, rgba(111, 255, 204, .13) 48%, transparent 66%);
  background-size: 240% 100%;
  animation: plScan 2.1s linear infinite;
}
@keyframes plScan {
  from { background-position: 160% 0; }
  to { background-position: -80% 0; }
}

.pl-progress-card {
  padding: 22px 18px;
  border-radius: 24px;
  text-align: center;
  background: rgba(13, 29, 27, .88);
  border: 1px solid rgba(127, 255, 207, .14);
}
.pl-progress-orb { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.pl-progress-orb span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68efb7;
  animation: plDots 1.1s ease-in-out infinite;
}
.pl-progress-orb span:nth-child(2) { animation-delay: .14s; }
.pl-progress-orb span:nth-child(3) { animation-delay: .28s; }
@keyframes plDots {
  0%, 100% { opacity: .24; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}
.pl-progress-card b { display: block; font-size: 1rem; }
.pl-progress-card p { margin: 7px auto 15px; color: rgba(236, 255, 249, .52); font-size: .72rem; line-height: 1.55; }
.pl-progress-card small { display: block; margin-top: 12px; color: rgba(236, 255, 249, .36); font-size: .64rem; line-height: 1.55; }
.pl-progress-line { height: 3px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.pl-progress-line span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #6bf0b8, transparent);
  animation: plProgress 1.6s ease-in-out infinite;
}
@keyframes plProgress {
  from { transform: translateX(-110%); }
  to { transform: translateX(340%); }
}

.pl-result { padding-top: 4px; }
.pl-result-head { margin-bottom: 14px; text-align: center; }
.pl-result-head > span { color: #63eab1; font-size: .62rem; font-weight: 900; letter-spacing: .18em; }
.pl-result-head h2 { margin: 7px 0 5px; font-size: 1.5rem; letter-spacing: -.035em; }
.pl-result-head p { margin: 0 auto; max-width: 430px; color: rgba(234, 255, 248, .5); font-size: .74rem; line-height: 1.6; }
.pl-result-image {
  overflow: hidden;
  margin-bottom: 13px;
  border-radius: 26px;
  background: #111a1a;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .36);
}
.pl-result-image img { display: block; width: 100%; max-height: 70vh; object-fit: contain; margin: 0 auto; }
.pl-result > .pl-primary-btn { display: flex; }
.pl-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.pl-result .pl-back-link { display: block; margin: 10px auto 0; text-align: center; }

.pl-error-card {
  margin-top: 16px;
  padding: 30px 20px;
  border-radius: 26px;
  text-align: center;
  background: rgba(22, 26, 27, .88);
  border: 1px solid rgba(255, 255, 255, .09);
}
.pl-error-icon { display: block; margin-bottom: 8px; font-size: 2rem; }
.pl-error-card h2 { margin: 0 0 8px; font-size: 1.24rem; }
.pl-error-card p { margin: 0 auto 17px; max-width: 440px; color: rgba(238, 255, 250, .5); font-size: .76rem; line-height: 1.6; }
.pl-error-card .pl-primary-btn,
.pl-error-card .pl-secondary-btn { width: min(100%, 330px); margin-bottom: 8px; }

@media (max-width: 420px) {
  .pl-page { padding-inline: 12px; }
  .pl-hero { padding-inline: 17px; border-radius: 26px; }
  .pl-hero-visual { height: 196px; }
  .pl-shot-front { width: 121px; height: 173px; }
  .pl-shot-back { left: 24px; width: 108px; height: 150px; }
  .pl-hero-orbit { width: 162px; height: 162px; }
  .pl-mode-card { min-height: 136px; padding-inline: 15px; }
  .pl-mode-art { height: 164px; right: -16px; }
  .pl-mode-couple .pl-mode-art { height: 150px; }
  .pl-mode-copy { max-width: 72%; }
  .pl-mode-copy small { max-width: 190px; }
  .pl-mode-promise { gap: 7px; font-size: .59rem; }
  .pl-generate-bar { gap: 8px; }
  .pl-cost { min-width: 92px; }
  .pl-generate-btn { font-size: .75rem; }
  .pl-pose-scroll { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px 6px; }
}

/* 点预览看大图 */
.pl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 8, 7, .93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: plLightboxIn .16s ease;
}
.pl-lightbox-canvas {
  position: relative;
  width: min(94vw, calc(88vh * var(--pl-ratio, .75)));
  overflow: hidden;
  border-radius: 20px;
  background: #111a1a;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  isolation: isolate;
}
.pl-lightbox .pl-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.pl-lightbox .pl-pose-overlay { height: 78%; }
.pl-lightbox-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.pl-lightbox-open { overflow: hidden; }
@keyframes plLightboxIn { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 900px) {
  .pl-canvas { width: min(100%, 420px, calc(56vh * var(--pl-ratio, .75))); }
}

@media (prefers-reduced-motion: reduce) {
  .pl-hero-pose,
  .pl-generating .pl-canvas::after,
  .pl-progress-orb span,
  .pl-progress-line span { animation: none !important; }
}
