/* 员工照片库样式  about/photo_app/style.css
   配色沿用官网：主色 #F37021，正文 #2c3e50 */
.ph-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; margin-bottom: 16px;
}
.ph-stat { color: #666; font-size: 13px; }
.ph-stat b { color: #F37021; font-weight: 600; }
.ph-dot { margin: 0 6px; color: #ccc; }
.ph-stat a { color: #F37021; text-decoration: none; }
.ph-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph-user { font-size: 13px; color: #888; }

.ph-btn {
    display: inline-block; padding: 7px 16px; border: 0; border-radius: 3px;
    background: #F37021; color: #fff; font-size: 13px; line-height: 1.4;
    cursor: pointer; text-decoration: none; transition: background .2s;
}
.ph-btn:hover { background: #d95f16; color: #fff; }
.ph-btn-ghost { background: #fff; color: #555; border: 1px solid #ddd; }
.ph-btn-ghost:hover { background: #fafafa; color: #F37021; border-color: #F37021; }

.ph-upload {
    border: 1px dashed #e2e2e2; background: #fcfcfc; border-radius: 4px;
    padding: 14px 16px; margin-bottom: 20px;
}
.ph-upload-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ph-upload-head strong { font-size: 14px; color: #2c3e50; }
.ph-hint { font-size: 12px; color: #999; }
.ph-upload-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ph-pick {
    display: inline-block; padding: 8px 18px; background: #F37021; color: #fff;
    border-radius: 3px; font-size: 13px; cursor: pointer;
}
.ph-pick:hover { background: #d95f16; }
.ph-title {
    flex: 1; min-width: 200px; padding: 7px 10px; border: 1px solid #ddd; border-radius: 3px;
    font-size: 13px; color: #333; outline: none;
}
.ph-title:focus { border-color: #F37021; }

.ph-queue { margin-top: 10px; }
.ph-row {
    display: flex; align-items: center; gap: 10px; padding: 6px 0;
    font-size: 12px; color: #666; border-bottom: 1px dotted #eee;
}
.ph-row-name { flex: 0 1 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.ph-row-size { flex: 0 0 60px; color: #999; }
.ph-bar { flex: 1; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; min-width: 80px; }
.ph-bar-in { display: block; height: 100%; width: 0; background: #F37021; transition: width .2s; }
.ph-row-status { flex: 0 0 120px; text-align: right; color: #999; }
.ph-row-status.ok { color: #1a9d4a; }
.ph-row-status.err { color: #d0342c; }
.ph-row.all-done { color: #1a9d4a; border: 0; padding-top: 8px; }

.ph-login-tip {
    padding: 16px; background: #fff8f3; border: 1px solid #ffe0c9; border-radius: 4px;
    font-size: 13px; color: #7a5138; margin-bottom: 20px;
}
.ph-login-tip b { color: #F37021; }

.ph-empty { padding: 40px 0; text-align: center; color: #999; font-size: 14px; }

.ph-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ph-card { margin: 0; background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.ph-thumb { display: block; background: #f5f5f5; aspect-ratio: 4 / 3; overflow: hidden; }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ph-thumb:hover img { transform: scale(1.04); }
.ph-card figcaption { padding: 8px 10px 10px; }
.ph-cap-title { font-size: 13px; color: #2c3e50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-cap-meta { font-size: 11px; color: #999; margin-top: 3px; }
.ph-cap-btns { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ph-mini {
    font-size: 12px; color: #F37021; text-decoration: none; background: none;
    border: 0; padding: 0; cursor: pointer;
}
.ph-mini:hover { text-decoration: underline; }
.ph-del { color: #999; }
.ph-check { font-size: 12px; color: #888; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }

.ph-batch { margin-top: 18px; text-align: right; }

.ph-pager { margin-top: 20px; text-align: center; }
.ph-pager a {
    display: inline-block; min-width: 30px; padding: 5px 8px; margin: 0 3px;
    border: 1px solid #e5e5e5; border-radius: 3px; font-size: 13px; color: #666; text-decoration: none;
}
.ph-pager a.on, .ph-pager a:hover { background: #F37021; border-color: #F37021; color: #fff; }

/* 大图 */
.ph-lb {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .88);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.ph-lb[hidden] { display: none; }
.ph-lb-inner { position: relative; max-width: 96vw; max-height: 92vh; text-align: center; }
.ph-lb-inner img { max-width: 96vw; max-height: 82vh; display: block; margin: 0 auto; border-radius: 3px; }
.ph-lb-close {
    position: absolute; right: -6px; top: -38px; background: none; border: 0;
    color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.ph-lb-bar { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #ddd; font-size: 13px; }

/* 登录弹层 */
.ph-modal {
    position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .55);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ph-modal[hidden] { display: none; }
.ph-modal-box {
    width: 340px; max-width: 92vw; background: #fff; border-radius: 5px; padding: 22px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
.ph-modal-title { font-size: 16px; color: #2c3e50; font-weight: 600; }
.ph-modal-sub { font-size: 12px; color: #999; margin: 6px 0 16px; }
.ph-field { display: block; margin-bottom: 12px; font-size: 13px; color: #666; }
.ph-field input {
    display: block; width: 100%; margin-top: 5px; padding: 8px 10px;
    border: 1px solid #ddd; border-radius: 3px; font-size: 14px; box-sizing: border-box; outline: none;
}
.ph-field input:focus { border-color: #F37021; }
.ph-modal-err { color: #d0342c; font-size: 12px; min-height: 16px; }
.ph-modal-btns { display: flex; gap: 10px; margin-top: 6px; }
.ph-modal-btns .ph-btn { flex: 1; text-align: center; }

/* 响应式：平板 3 列，手机 2 列 */
@media (max-width: 1100px) { .ph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
    .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ph-cap-meta { font-size: 10px; }
    .ph-row-name { flex-basis: 140px; }
    .ph-row-size { flex-basis: 48px; }
    .ph-row-status { flex-basis: 84px; font-size: 11px; }
    .ph-title { min-width: 100%; }
    .ph-lb-bar { flex-direction: column; gap: 8px; }
}
