/* 31 · 拍照打卡机位指南 —— 松绿取景框 + 九宫格（独立布局） */
.psg {
  --f34-a: #26745e; --f34-a2: #6bb99d; --f34-soft: #e5f4ee;
  --psg-sky: #cfe3dd; --psg-ground: #a8c5b7;
}
:root[data-theme="dark"] .psg {
  --f34-a: #65cfae; --f34-a2: #96e2c8; --f34-soft: rgba(60, 175, 140, .17);
  --psg-sky: #1d3a34; --psg-ground: #27473d;
}
.psg-hero { background: linear-gradient(120deg, var(--f34-surface) 58%, var(--f34-soft)); }
.psg-sel { width: 152px; }
.psg-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr); gap: 16px; margin-top: 18px; align-items: start; }
.psg-view, .psg-params, .psg-light { min-width: 0; }
.psg-aside { display: grid; gap: 16px; }
.psg-frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 13px;
  border: 6px solid var(--f34-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  background: linear-gradient(180deg, var(--psg-sky) 0 62%, var(--psg-ground) 62% 100%);
}
.psg-sky { position: absolute; inset: 0 0 38% 0; background: radial-gradient(180px 120px at 76% 18%, rgba(255, 240, 190, .5), transparent 70%); }
.psg-horizon { position: absolute; left: 0; right: 0; top: 62%; height: 2px; background: rgba(255, 255, 255, .45); }
.psg-subject { position: absolute; left: 33.33%; top: 33.33%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--f34-a); border: 3px solid #fff; box-shadow: 0 3px 14px rgba(0, 0, 0, .25); transition: left .3s, top .3s; }
.psg-lines { position: absolute; inset: 0; pointer-events: none; }
.psg-lines .v, .psg-lines .h { position: absolute; background: rgba(255, 255, 255, .55); }
.psg-lines .v { top: 0; bottom: 0; width: 1px; } .psg-lines .h { left: 0; right: 0; height: 1px; }
.psg-lines .diag { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.psg-lines .diag path { stroke: rgba(255, 255, 255, .55); stroke-width: 1; fill: none; }
.psg-frame-label { position: absolute; right: 10px; bottom: 8px; padding: 2px 8px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .42); border-radius: 6px; }
.psg-lines-pick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.psg-line-btn { padding: 6px 12px; font-size: 12.5px; cursor: pointer; color: var(--f34-ink-2); background: var(--f34-surface-2); border: 1px solid var(--f34-line); border-radius: 999px; }
.psg-line-btn:hover { border-color: var(--f34-a); }
.psg-line-btn.is-on { color: #fff; background: var(--f34-a); border-color: var(--f34-a); }
.psg-light-rows { display: grid; gap: 7px; }
.psg-light-row { display: grid; grid-template-columns: 52px 1fr 38px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--f34-ink-2); }
.psg-light-row .tr { height: 8px; border-radius: 999px; background: var(--f34-line); overflow: hidden; }
.psg-light-row .tr i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--f34-a2), var(--f34-a)); }
.psg-light-row.is-on { color: var(--f34-a); font-weight: 700; }
.psg-light-row b { text-align: right; font-variant-numeric: tabular-nums; }
.psg-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.psg-card { padding: 13px 15px; border: 1px solid var(--f34-line); border-radius: 12px; background: var(--f34-surface-2); }
.psg-card b { display: block; font-size: 13px; color: var(--f34-a); margin-bottom: 4px; }
.psg-card p { font-size: 13px; line-height: 1.82; color: var(--f34-ink-2); }
.psg-ai { border: 1px dashed color-mix(in srgb, var(--f34-a) 45%, var(--f34-line)); }
.psg-ai .f34-tip { font-size: 12.8px; line-height: 1.8; }
.psg-ai-out { margin-top: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.92; color: var(--f34-ink-2); background: var(--f34-soft); border-radius: 12px; white-space: pre-wrap; }

@media (max-width: 980px) {
  .psg-layout { grid-template-columns: 1fr; }
  .psg-sel { width: 138px; }
}
@media (max-width: 620px) {
  .psg-cards { grid-template-columns: 1fr; }
  .psg-sel { width: 100%; }
}
