.top-notify-image {
    position: relative;
    width: 100%;
}

.top-notify-image__link,
.top-notify-image__picture,
.top-notify-image__img {
    display: block;
    width: 100%;
}

.top-notify-image__img {
    height: auto;
    margin: 0;
}

.top-notify-image__close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font: 22px/1 sans-serif;
    cursor: pointer;
}

.top-notify-image__close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.top-notify-image__close:focus-visible,
.top-notify-image__link:focus-visible {
    outline: 2px solid #1f6bff;
    outline-offset: -2px;
}

.top-notify-details {
    margin-left: 8px;
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}

/* 超宽横幅在手机上只有约 22px 高；为关闭按钮留出独立空间，不遮挡图片文字。 */
@media (max-width: 767px) {
    .top-notify-image {
        padding-right: 40px;
        min-height: 40px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        background: #f6f8fb;
    }

    .top-notify-image__close {
        right: 4px;
        width: 32px;
        height: 32px;
    }
}
