/* 马甲回复 —— 选择入口 + 身份选择弹层 */

/* ---------- 评论工具栏里的入口 chip ---------- */
.ypr-chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    margin: 0 8px 0 0;
    border: 1px solid #e5e6eb;
    border-radius: 14px;
    background: #fff;
    color: #4e5969;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: border-color .15s, background .15s, color .15s;
}
.ypr-chip i { font-size: 15px; margin-right: 4px; }
.ypr-chip-txt {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ypr-chip:hover { border-color: #f53f3f; color: #f53f3f; }
.ypr-chip.is-active {
    border-color: #f53f3f;
    background: #fff3f3;
    color: #f53f3f;
}
.ypr-chip-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 4px;
    object-fit: cover;
}

/* ---------- 遮罩与弹层（电脑端居中卡片） ---------- */
.ypr-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ypr-picker {
    width: 360px;
    max-width: calc(100% - 32px);
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
}
.ypr-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
}
.ypr-picker-head i {
    font-size: 18px;
    color: #86909c;
    cursor: pointer;
}
.ypr-picker-head i:hover { color: #1d2129; }
.ypr-picker-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 10px;
}

/* ---------- 名单 ---------- */
.ypr-pick-self,
.ypr-pick-item {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    cursor: pointer;
}
.ypr-pick-self:hover,
.ypr-pick-item:hover { background: #f7f8fa; }
.ypr-pick-self.is-active,
.ypr-pick-item.is-active { background: #fff3f3; }
.ypr-pick-self-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f2f3f5;
    color: #4e5969;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-right: 10px;
    flex-shrink: 0;
}
.ypr-pick-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}
.ypr-pick-name {
    flex: 1;
    font-size: 14px;
    color: #1d2129;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ypr-pick-check {
    color: #f53f3f;
    font-size: 16px;
    display: none;
    flex-shrink: 0;
}
.is-active .ypr-pick-check { display: block; }
.ypr-pick-warn {
    font-size: 11px;
    color: #ff7d00;
    border: 1px solid #ffcf8b;
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 6px;
    flex-shrink: 0;
}
.ypr-pick-group {
    padding: 10px 16px 2px;
    font-size: 12px;
    color: #86909c;
}
.ypr-pick-empty {
    padding: 26px 16px;
    text-align: center;
    color: #86909c;
    font-size: 13px;
    line-height: 1.9;
}

/* ---------- 移动端：底部抽屉 + 安全区 ---------- */
.ypr-mask-mb { align-items: flex-end; }
.ypr-mask-mb .ypr-picker {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 72vh;
    padding-bottom: 0;
    animation: ypr-slide-up .22s ease-out;
}
.ypr-mask-mb .ypr-picker { padding-bottom: env(safe-area-inset-bottom); }
.ypr-mask-mb .ypr-picker-head { padding: 15px 16px; }
.ypr-mask-mb .ypr-pick-item,
.ypr-mask-mb .ypr-pick-self { padding: 11px 16px; }
@keyframes ypr-slide-up {
    from { transform: translateY(40%); opacity: .6; }
    to   { transform: translateY(0);   opacity: 1; }
}
@media (hover: none) and (pointer: coarse) {
    .ypr-chip:hover { border-color: #e5e6eb; color: #4e5969; }
    .ypr-chip.is-active { border-color: #f53f3f; color: #f53f3f; }
}
