/* ============================================================================
   照片生成轨迹 —— 弹窗样式
   与既有 .modal 同一套视觉语言（圆角、白底、.btn/.btn-primary 按钮），
   但用了独立前缀 .pt-*，避免和主应用的 modal 状态互相干扰。
   ========================================================================== */

.pt-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 260; padding: 16px;
}
.pt-modal.hidden { display: none; }

.pt-box {
  background: #fff; border-radius: 12px; padding: 20px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
}
.pt-box h2 { font-size: 17px; margin-bottom: 14px; }

.pt-label { display: block; font-size: 13px; color: #5f6368; margin-bottom: 6px; }
.pt-input {
  width: 100%; padding: 9px 11px; font-size: 14px;
  border: 1px solid #dadce0; border-radius: 8px; box-sizing: border-box;
}
.pt-input:focus { outline: 2px solid #1a73e8; outline-offset: -1px; border-color: #1a73e8; }
.pt-hint { font-size: 12px; color: #80868b; margin: 6px 0 0; }

/* ---- 拖拽区 ---- */
.pt-drop {
  margin: 14px 0 0; padding: 22px 14px;
  border: 2px dashed #dadce0; border-radius: 10px;
  text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pt-drop:hover, .pt-drop:focus { border-color: #1a73e8; background: #f5f9ff; outline: none; }
.pt-drop.dragging { border-color: #1a73e8; background: #e8f1ff; }
.pt-drop-icon { font-size: 28px; line-height: 1; }
.pt-drop-main { font-size: 14px; margin-top: 8px; }
.pt-drop-sub { font-size: 12px; color: #80868b; margin-top: 4px; }

/* ---- 状态行 ---- */
.pt-status { font-size: 13px; color: #5f6368; margin-top: 12px; min-height: 18px; }
.pt-status.err { color: #c5221f; }

/* ---- 预览 ---- */
.pt-preview:empty { display: none; }
.pt-summary {
  margin-top: 12px; padding: 9px 11px;
  background: #f1f3f4; border-radius: 8px;
  font-size: 13px; color: #3c4043;
}
.pt-points {
  margin-top: 10px; max-height: 200px; overflow-y: auto;
  border: 1px solid #e8eaed; border-radius: 8px;
}
.pt-point {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; font-size: 13px;
  border-bottom: 1px solid #f1f3f4;
}
.pt-point:last-child { border-bottom: none; }
.pt-idx {
  flex: 0 0 20px; height: 20px; border-radius: 50%;
  background: #1a73e8; color: #fff;
  font-size: 11px; line-height: 20px; text-align: center;
}
.pt-pname { flex: 1 1 auto; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-pdate { flex: 0 0 auto; font-size: 12px; color: #80868b; }
.pt-pcount { flex: 0 0 auto; font-size: 12px; color: #1a73e8; }
.pt-orphan-note {
  margin-top: 8px; padding: 8px 10px;
  background: #fef7e0; border-radius: 8px;
  font-size: 12px; color: #8a6d3b; line-height: 1.5;
}

/* ---- 小屏适配：弹窗占满，内容可滚 ---- */
@media (max-width: 600px) {
  .pt-box { max-width: 100%; padding: 16px; border-radius: 10px; }
  .pt-drop { padding: 18px 12px; }
  .pt-point { font-size: 12px; gap: 6px; }
  .pt-pdate { font-size: 11px; }
}
/* ---- 模式切换（新建 / 追加）分段控件 ---- */
.pt-mode-row { margin-bottom: 4px; }
.pt-segmented {
  display: flex; gap: 2px; padding: 3px;
  background: #f1f3f4; border-radius: 9px;
}
.pt-seg-btn {
  flex: 1 1 0; min-width: 0;
  padding: 8px 6px; font-size: 13px; font-family: inherit;
  color: #5f6368; background: transparent;
  border: none; border-radius: 7px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s, color .15s;
}
.pt-seg-btn:hover { background: rgba(0,0,0,.04); }
.pt-seg-btn.active {
  background: #fff; color: #1a73e8; font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.pt-field { margin-top: 12px; }
.pt-field.hidden { display: none; }

/* ---- 小屏：分段按钮文案缩短的替代方案 ---- */
@media (max-width: 380px) {
  .pt-seg-btn { font-size: 12px; padding: 8px 4px; }
}
