/* 划词后弹出的操作菜单 */
.rn-popup {
    position: absolute;
    z-index: 999999;
    display: flex;
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.rn-popup-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.rn-popup-btn:hover {
    background: rgba(255,255,255,0.12);
}

.rn-icon-square {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--theme-color, #b7cc3b);
}

/* 高亮颜色选择面板 */
.rn-palette {
    position: absolute;
    z-index: 999999;
    display: flex;
    gap: 8px;
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.rn-palette-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.5);
    transition: transform 0.15s ease;
}
.rn-palette-dot:hover {
    transform: scale(1.15);
}

/* 笔记编辑弹窗 */
.rn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.rn-modal-box {
    background: var(--float-btn-bg, rgba(40,40,40,0.95));
    backdrop-filter: saturate(2) blur(10px);
    -webkit-backdrop-filter: saturate(2) blur(10px);
    border-radius: 14px;
    padding: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.rn-modal-quote {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    border-left: 3px solid var(--theme-color, #b7cc3b);
    padding-left: 10px;
    margin-bottom: 12px;
    max-height: 80px;
    overflow-y: auto;
}

.rn-modal-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    padding: 10px;
    resize: vertical;
    box-sizing: border-box;
}

.rn-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.rn-modal-count {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.rn-modal-save {
    background: var(--theme-color, #b7cc3b);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
}

/* 正文中的高亮效果：马克笔风格，半透明色块 */
.rn-mark.rn-highlight-yellow { background: rgba(255, 224, 102, 0.45); }
.rn-mark.rn-highlight-green  { background: rgba(140, 233, 154, 0.45); }
.rn-mark.rn-highlight-blue   { background: rgba(116, 192, 252, 0.45); }
.rn-mark.rn-highlight-pink   { background: rgba(250, 162, 193, 0.45); }
.rn-mark.rn-highlight-orange { background: rgba(255, 192, 120, 0.45); }
.rn-mark {
    border-radius: 3px;
    padding: 1px 0;
    cursor: pointer;
}

/* 笔记对应文字的下划线，仅本人可见（因为数据本身就是仅本人可查询到） */
.rn-mark.rn-underline {
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--theme-color, #b7cc3b);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.rn-mark.rn-clickable {
    cursor: pointer;
}

/* 点击已标记文字后弹出的操作框（含内容/删除按钮） */
.rn-view-popup {
    position: absolute;
    z-index: 999999;
    max-width: 280px;
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.rn-view-content {
    margin-bottom: 8px;
}
.rn-view-delete {
    color: #ff6b6b;
    cursor: pointer;
    font-size: 13px;
    display: inline-block;
}

/* 个人主页想法列表-加载更多 */
.rn-load-more {
    color: var(--theme-color, #b7cc3b);
    cursor: pointer;
    font-size: 14px;
}
.rn-no-more {
    font-size: 13px;
}

/* 个人主页想法列表-新布局 */
.rn-note-item .author-set-left {
    width: 56px;
    flex-shrink: 0;
}
.rn-note-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.rn-note-item .note-content {
    color: rgba(255, 255, 255, 0.65);
}

.rn-note-post-title {
    display: block;
    color: var(--theme-color, #b7cc3b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.rn-note-sep {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 8px;
}

.rn-note-footer {
    width: 100%;
}
.rn-note-date {
    flex-shrink: 0;
}

.rn-note-actions {
    display: flex;
    align-items: center;
}
.rn-edit-note-link,
.rn-delete-note-link {
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    flex-shrink: 0;
}
.rn-edit-note-link:hover {
    color: var(--theme-color, #b7cc3b);
}
.rn-delete-note-link:hover {
    color: #ff6b6b;
}

/* 用户中心-笔记列表 */
.note-content {
    font-size: 14px;
    line-height: 1.6;
}
.note-source a {
    color: inherit;
}