/* V1/V3 企业福利：前四项常驻，其余在省略按钮悬浮或键盘聚焦时显示。 */
.company-welfare {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: min(100%, calc(100vw - 48px));
    margin-top: 12px;
    overflow: visible;
    font-size: 13px;
    line-height: 22px;
}
.company-welfare .company-welfare__tag {
    display: inline-block;
    box-sizing: border-box;
    max-width: min(12em, 100%);
    padding: 1px 8px;
    border-radius: 4px;
    background: #f2f3f5;
    color: #777;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.company-welfare .company-welfare__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #f2f3f5;
    color: #777;
    font: 700 18px/1 sans-serif;
    cursor: pointer;
}
.company-welfare .company-welfare__trigger:focus-visible {
    outline: 2px solid #777;
    outline-offset: 2px;
}
.company-welfare .company-welfare__popover {
    display: none;
    position: absolute;
    z-index: 30;
    top: 100%;
    right: 0;
    box-sizing: border-box;
    width: 320px;
    max-width: 100%;
    padding-top: 8px;
}
.company-welfare .company-welfare__remaining {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    padding: 12px;
    overflow: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
}
.company-welfare .company-welfare__remaining .company-welfare__tag { max-width: 100%; }
.company-welfare__more:hover .company-welfare__popover,
.company-welfare__more:focus-within .company-welfare__popover { display: block; }

@media (max-width: 760px) {
    /* 企业 Logo 与正文仍沿用原页面布局，为福利标签保留屏内的可用宽度。 */
    .company-banner .company-welfare { max-width: calc(100vw - 140px); }
}
