.vp-notice-wrap {
    position: fixed;
    z-index: 999999;
    max-width: 380px;
    pointer-events: none;
    font-family: inherit;
}
.vp-notice-wrap.vp-bottom-left  { bottom: 26px; left: 26px; }
.vp-notice-wrap.vp-bottom-right { bottom: 26px; right: 26px; }
.vp-notice-wrap.vp-top-left     { top: 26px; left: 26px; }
.vp-notice-wrap.vp-top-right    { top: 26px; right: 26px; }

.vp-notice-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background: color-mix(in srgb, var(--vp-bg, #ffffff) 55%, transparent);
    color: var(--vp-text, #16181d);
    border-radius: 16px;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.03),
        0 18px 40px -14px rgba(20, 20, 30, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    direction: rtl;
    font-family: inherit;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transform-origin: top right;
    transition:
        opacity 0.45s cubic-bezier(.22, 1, .36, 1),
        transform 0.55s cubic-bezier(.22, 1, .36, 1);
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.vp-notice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%);
    pointer-events: none;
}
.vp-notice-card.vp-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vp-notice-stub {
    position: relative;
    width: 62px;
    min-width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--vp-accent, #228bf4) 16%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--vp-accent, #228bf4) 30%, transparent);
}

.vp-notice-stamp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--vp-accent, #228bf4);
    background: color-mix(in srgb, var(--vp-accent, #228bf4) 12%, rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vp-accent, #228bf4);
    box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--vp-accent, #228bf4) 60%, transparent);
    position: relative;
}
.vp-notice-stamp::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--vp-accent, #228bf4) 45%, transparent);
}
.vp-notice-stamp svg { width: 18px; height: 18px; }

.vp-notice-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 14px;
    min-width: 0;
}

.vp-notice-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: var(--vp-accent, #228bf4);
}

.vp-notice-body { position: relative; line-height: 1.55; min-width: 0; }
.vp-notice-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vp-notice-title b { font-weight: 700; }
.vp-notice-sub {
    font-size: 13.5px;
    margin: 0;
    opacity: 0.72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vp-notice-time {
    font-family: inherit;
    font-size: 11.5px;
    letter-spacing: 0.02em;
    opacity: 0.55;
    margin-top: 2px;
}

.vp-notice-close {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vp-text, #16181d);
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    font-size: 12px;
    font-family: inherit;
    z-index: 2;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}
.vp-notice-card:hover .vp-notice-close { opacity: 0.6; }
.vp-notice-close:hover { opacity: 1 !important; background: rgba(255, 255, 255, 0.7); }

.vp-notice-progress {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
}
.vp-notice-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, color-mix(in srgb, var(--vp-accent, #228bf4) 80%, white), var(--vp-accent, #228bf4));
    transform-origin: right;
    transform: scaleX(1);
    transition: transform linear;
}

@media (max-width: 480px) {
    .vp-notice-wrap { max-width: 92vw; }
    .vp-notice-wrap.vp-bottom-left, .vp-notice-wrap.vp-top-left { left: 10px; }
    .vp-notice-wrap.vp-bottom-right, .vp-notice-wrap.vp-top-right { right: 10px; }
    .vp-notice-wrap.vp-top-left, .vp-notice-wrap.vp-top-right { top: 10px; }
    .vp-notice-wrap.vp-bottom-left, .vp-notice-wrap.vp-bottom-right { bottom: 10px; }

    .vp-notice-card { border-radius: 13px; }
    .vp-notice-stub { width: 48px; min-width: 48px; }
    .vp-notice-stamp { width: 32px; height: 32px; }
    .vp-notice-stamp svg { width: 15px; height: 15px; }
    .vp-notice-main { padding: 8px 10px; gap: 8px; }
    .vp-notice-title { font-size: 13.5px; }
    .vp-notice-sub { font-size: 12.5px; }
    .vp-notice-time { font-size: 11px; }
    .vp-notice-close { top: 4px; left: 4px; width: 16px; height: 16px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .vp-notice-card { transition: opacity 0.3s ease; transform: none !important; }
}
