#rtn-notification-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}
#rtn-bell {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #444;
    transition: transform .2s ease, box-shadow .2s ease;
}
#rtn-bell:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}
#rtn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
}
#rtn-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 340px;
    max-height: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#rtn-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
#rtn-mark-all {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
}
#rtn-mark-all:hover { background: #f0f7fd; }

#rtn-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 400px;
}

.rtn-item {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}
.rtn-item:hover {
    background: #fafafa;
}
.rtn-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding-right: 24px; /* 给 × 让位 */
}
.rtn-item-text {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}
.rtn-item-excerpt {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    word-break: break-word;
}
.rtn-item-time {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
}

/* 每条通知的 × 删除按钮 */
.rtn-item-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #bbb;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    opacity: 0;
    transition: opacity .15s, background .15s, color .15s;
}
.rtn-item:hover .rtn-item-close {
    opacity: 1;
}
.rtn-item-close:hover {
    background: #e74c3c;
    color: #fff;
}
.rtn-item-close:active {
    transform: scale(0.9);
}

.rtn-empty {
    padding: 32px 16px;
    text-align: center;
    color: #999;
}

@media (max-width: 480px) {
    #rtn-notification-wrapper { bottom: 16px; right: 16px; }
    #rtn-panel { width: calc(100vw - 32px); max-width: 340px; }

    /* 触屏设备上直接显示 × 按钮 */
    .rtn-item-close { opacity: 1; }
}