/* 兰谱 · 全站照片比例统一（v2.15，2026-11-03 用户拍板）
 *
 * 用户原话：
 *   「还有缩略图大小要一致！点击放大以后照片要拆切一致！
 *     放大后的信息应该是4:3大小，全站统一！录入信息时候自动4:3！」
 *
 * 规矩（自上而下覆盖，各页内联样式不改）：
 *   1. 所有**植物照片缩略图**一律 4:3（横 4 竖 3）
 *   2. 所有**放大层**的照片框也是 4:3，object-fit:cover（居中裁切，不变形）
 *   3. 上传时入库前就裁成 4:3（见各页 compress / shrink）
 *
 * 例外：账号头像（圆形）不受影响。
 */

/* ---------- 1. 缩略图统一 4:3 ---------- */

/* 我的档案列表行 */
.me-list .thumb,
#meList .thumb { aspect-ratio: 4 / 3; height: auto; }

/* 工作台列表行（.pitem 里的 .thumb） */
.pitem .thumb { aspect-ratio: 4 / 3; height: auto; width: 78px; min-width: 78px; }
.pitem .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 工作台网格视图 */
.gitem .gimg { aspect-ratio: 4 / 3; }

/* 工作台父母本小卡（.pc .pi） */
.parstrip .pc .pi { aspect-ratio: 4 / 3; }
.parstrip .pc .pi img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 花友卡片（工作台里的花友列表） */
#buddyList .bph { aspect-ratio: 4 / 3; }

/* 谱系树页：父母本卡 + 缩略图 */
.par img, .par .im { aspect-ratio: 4 / 3; }
.thumb img, .thumb .im { aspect-ratio: 4 / 3; }

/* 溯源页（/t/<id>）父母本卡 */
.pcell .pimg { aspect-ratio: 4 / 3; }
.pcell .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seedhero .pcell .pimg img { aspect-ratio: 4 / 3; }
.seedhero-img > img { aspect-ratio: 4 / 3; max-width: 220px; }

/* 补录面板里的缩略图（parfix.js 自带样式已 4:3，这里兜底） */
.pf-thumb { aspect-ratio: 4 / 3; }

/* ---------- 2. 放大层统一 4:3 ---------- */

/* 工作台 / 档案页的大图层（tlImgMask） */
#tlImgFull {
  width: 92vw;
  max-width: 92vw;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 76vh;
  border-radius: 14px;
  background: #0f172a;
}

/* 成兰画廊的大图层（pgZoom） */
.pgzoom img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 56vh;
  border-radius: 14px;
  background: #0f172a;
}
.pgzoom #pgZoomIcon { aspect-ratio: 4 / 3; }
