/* ===========================================================
   宠物排盘 · 命盘证版式（2026-10-15 站长选定草图 C）
   作用域：.pid-form / .pid-breed-sheet，不影响其他宠物页面。
   =========================================================== */
.pet-id-main .pet-form-head { padding-bottom: 6px; }
.pet-id-main .pet-form-title { font-size: clamp(26px, 6vw, 34px); }
.pid-form { display: grid; gap: 10px; max-width: 520px; padding-bottom: 24px; }
.pid-card { position: relative; border-radius: 22px; padding: 14px; background: linear-gradient(135deg, #fff8ee, #fbecd8); border: 1px solid #efd9b8; overflow: hidden; display: grid; gap: 10px; box-shadow: 0 10px 30px rgba(168, 123, 44, .12); }
.pid-card.is-dog { background: linear-gradient(135deg, #f5f9ff, #e4eefb); border-color: #c9dbf2; box-shadow: 0 10px 30px rgba(79, 127, 196, .12); }
.pid-card::after { content: 'PET'; position: absolute; right: -4px; bottom: -6px; font-size: 64px; font-weight: 900; color: rgba(168, 123, 44, .07); letter-spacing: -.04em; pointer-events: none; }
.pid-top { display: flex; justify-content: space-between; font-size: 11px; color: #a87b2c; letter-spacing: .14em; }
.pid-card.is-dog .pid-top { color: #4f7fc4; }
.pid-stamp { position: absolute; right: 12px; top: 34px; width: 52px; height: 52px; border: 2px solid #b8322a; border-radius: 50%; color: #b8322a; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 13px; line-height: 1.1; text-align: center; transform: rotate(-12deg); opacity: .78; pointer-events: none; z-index: 1; }
.pid-body { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
.pid-photo { position: relative; height: 132px; border-radius: 14px; overflow: hidden; background: #fff; border: 1.5px dashed #e0c79c; display: grid; place-items: center; }
.pid-card.is-dog .pid-photo { border-color: #b8cde9; }
.pid-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pid-photo-empty { font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.5; padding: 0 6px; }
.pid-photo-btn { position: absolute; left: 4px; right: 4px; bottom: 4px; z-index: 2; border: 0; border-radius: 99px; padding: 3px 0; font: inherit; font-size: 10px; color: #fff; background: rgba(28, 37, 35, .62); cursor: pointer; min-height: 0; }
.pid-fields { display: grid; gap: 6px; align-content: start; min-width: 0; padding-right: 44px; }
.pid-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 6px; border-bottom: 1px solid #ecd9b9; padding-bottom: 5px; min-height: 30px; }
.pid-card.is-dog .pid-row { border-color: #cfdcef; }
.pid-k { font-size: 11px; color: var(--ink-3); }
.pid-input { width: 100%; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); padding: 2px 0; outline: none; }
.pid-input::placeholder { color: #c2b9a6; font-weight: 400; }
.pid-pick { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; min-height: 0; }
.pid-pick b { font-weight: 400; color: #b0a690; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pid-pick b.is-set { font-weight: 600; color: var(--ink); font-size: 16px; }
.pid-pick i { font-style: normal; color: var(--ink-3); }
.pid-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pid-pills label { position: relative; cursor: pointer; display: inline-block; }
.pid-pills input { position: absolute; opacity: 0; pointer-events: none; }
.pid-pills span { display: inline-block; font-size: 12px; border-radius: 99px; padding: 3px 10px; background: #fff; color: var(--ink-2); border: 1px solid transparent; white-space: nowrap; }
.pid-pills input:checked + span { background: var(--ink); color: #fff; }
.pid-pills input:focus-visible + span { outline: 2px solid #a87b2c; outline-offset: 1px; }
.pid-hint { display: block; font-size: 11px; color: var(--ink-3); margin: -4px 0 0; }
.pid-hint:empty { display: none; }
/* 日期口径：三枚小胶囊一行 */
.pid-form .pid-datekind { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin: 0; }
.pid-form .pid-datekind .pet-datekind-opt { min-height: 0; padding: 7px 4px; border-radius: 12px; background: rgba(255, 255, 255, .7); border: 1px solid transparent; text-align: center; }
.pid-form .pid-datekind .pet-datekind-opt:has(input:checked) { background: #fff; border-color: var(--ink); }
.pid-form .pid-datekind .pet-datekind-name { font-size: 13px; }
.pid-form .pid-datekind .pet-datekind-none { margin: 0; padding: 7px 10px; border-radius: 12px; font-size: 12px; background: none; border: 1px dashed #d8c39c; white-space: nowrap; }
.pid-form .pet-datekind-note, .pid-form .pet-datekind-guide { margin: -4px 0 0; font-size: 12px; }
/* 生日·时辰（一格一次选完）+ 出生地 */
.pid-birth { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; }
.pid-cell { display: grid; gap: 1px; text-align: left; border: 0; border-radius: 14px; padding: 9px 10px; background: #fff; font: inherit; cursor: pointer; min-width: 0; min-height: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.pid-cell small { font-size: 10px; color: var(--ink-3); }
.pid-cell b { font-family: var(--serif); font-size: 16px; line-height: 1.3; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pid-cell em { font-style: normal; font-size: 10px; color: #a87b2c; }
.pid-card.is-dog .pid-cell em { color: #4f7fc4; }
/* 真太阳时：iOS 开关 */
.pid-solar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.pid-solar small { display: block; font-size: 10px; color: var(--ink-3); }
.pid-solar input { position: absolute; opacity: 0; pointer-events: none; }
.pid-solar i { flex: none; position: relative; width: 42px; height: 24px; border-radius: 12px; background: #d9d2c3; transition: background .2s; }
.pid-solar i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.pid-solar input:checked + i { background: #1f6b5a; }
.pid-solar input:checked + i::after { transform: translateX(18px); }
.pid-solar input:disabled + i { opacity: .45; }
.pid-solar input:focus-visible + i { outline: 2px solid #a87b2c; outline-offset: 2px; }
.pid-credit { margin: -2px 0 0; font-size: 10px; color: var(--ink-3); line-height: 1.4; position: relative; z-index: 1; }
.pid-credit a { color: inherit; }
.pid-form .pet-warn { margin: -4px 0 0; }
.pid-photo-field { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pid-photo-field .pet-hint { flex-basis: 100%; margin: 0; font-size: 11px; }
.pid-submit { position: sticky; bottom: 10px; z-index: 5; margin-top: 2px; }
.pid-submit .pet-submit { width: 100%; border-radius: 16px; padding: 15px 0; font-size: 17px; box-shadow: 0 8px 20px rgba(28, 37, 35, .25); }
.pid-submit .pet-form-note { text-align: center; margin-top: 6px; font-size: 11px; }
/* 品种弹层：带照片格子 */
body.pid-lock { overflow: hidden; }
.pid-breed-sheet { max-height: 82vh; display: flex; flex-direction: column; }
.pid-breed-body { padding: 10px 14px 18px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 10px; }
.pid-breed-body .pet-input { width: 100%; }
.pid-breed-grid.pet-breed-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.pid-breed-grid .pet-breed-chip { display: grid; justify-items: center; gap: 4px; padding: 0 0 6px; border-radius: 14px; overflow: hidden; font-size: 12px; line-height: 1.25; text-align: center; min-height: 0; margin: 0; background: #fff; border: 1.5px solid var(--line); }
.pid-breed-grid .pet-breed-chip.is-on { border-color: var(--ink); background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--ink); }
.pid-breed-grid .pet-breed-chip.is-unknown { margin: 0; }
.pid-thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: var(--paper, #f6f1e7); color: var(--ink-3); font-size: 22px; overflow: hidden; }
.pid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 360px) {
  .pid-body { grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
  .pid-photo { height: 118px; }
  .pid-fields { padding-right: 36px; }
  .pid-stamp { width: 44px; height: 44px; font-size: 11px; }
  .pid-breed-grid.pet-breed-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 插画版照片位（2026-10-15 改：照片 → Q 版插画） */
.pid-photo { background: #fff; border-style: solid; border-width: 1.5px; }
.pid-breed-art { position: absolute; inset: 0; display: grid; place-items: center; }
.pid-breed-art svg { width: 100%; height: 100%; }
.pid-thumb svg { width: 100%; height: 100%; display: block; }
.pid-thumb { background: none; }
/* 2026-10-15 站长：删掉生日、出生地下方的说明文字（pet-form.js 仍会写入，这里不显示） */
.pid-form #birthHint, .pid-form #placeHint { display: none !important; }
/* 品种弹层做成整页插画选择页 */
.pid-breed-sheet { max-height: 90vh; height: 90vh; width: min(560px, 100%); }
.pid-breed-sheet h2 { font-size: 16px; }
.pid-breed-body { flex: 1; }
.pid-breed-grid .pet-breed-chip { padding-bottom: 8px; font-size: 12.5px; }
.pid-breed-grid .pet-breed-chip.is-unknown { grid-column: span 2; }
