/* note-inline.css — 划线/浮动菜单/popover/分享卡样式
   对标 blog-helper bh- 前缀体系；面板色适配 hivelet 主题变量（--s/--bd/--t/--tbg）。 */

/* 划线高亮 */
.bh-hl { background: rgba(255, 212, 0, 0.28); border-bottom: 2px solid rgba(240, 173, 0, 0.75); border-radius: 2px; cursor: pointer; transition: background 0.15s; }
.bh-hl:hover { background: rgba(255, 212, 0, 0.5); }
.bh-hl-pending { border-bottom-style: dashed; background: rgba(255, 212, 0, 0.12); }
.bh-hl-flash { animation: bh-hl-flash 1.6s ease; }
@keyframes bh-hl-flash { 0%, 60% { background: rgba(255, 160, 0, 0.65); } 100% { background: rgba(255, 212, 0, 0.28); } }

/* 选中浮动菜单（评论 / 复制 / 转发） */
.bh-select-bubble { position: fixed; z-index: 1100; display: flex; align-items: center; padding: 0; background: #24292e; color: #fff; border-radius: 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.3); user-select: none; -webkit-user-select: none; font-family: inherit; }
.bh-select-bubble:hover { background: #3a4149; }
.bh-select-bubble button { background: none; border: none; color: #fff; font-size: 13px; line-height: 1; padding: 8px 12px; cursor: pointer; font-family: inherit; }
.bh-select-bubble button:first-child { border-radius: 16px 0 0 16px; }
.bh-select-bubble button:last-child { border-radius: 0 16px 16px 0; }
.bh-select-bubble button + button { border-left: 1px solid rgba(255,255,255,0.25); }
.bh-select-bubble button:hover { background: rgba(255,255,255,0.12); }

/* 锚点 popover（这段的评论 + 回复表单） */
.bh-anchor-popover { position: fixed; z-index: 1100; width: 420px; max-width: calc(100vw - 24px); background: var(--s, #fff); border: 1px solid var(--bd, #ddd); border-radius: 8px; box-shadow: 0 6px 28px rgba(0,0,0,0.18); color: var(--t, #333); font-family: inherit; }
.bh-anchor-popover-inner { padding: 16px; position: relative; max-height: 65vh; overflow-y: auto; }
.bh-anchor-close { position: absolute; top: 10px; right: 10px; background: none; border: none; color: var(--t3, #999); cursor: pointer; font-size: 14px; padding: 4px; }
.bh-anchor-close:hover { color: var(--t, #333); }
.bh-anchor-comments .bh-comment-item { margin-bottom: 14px; }
.bh-anchor-comments .bh-comment-item:last-child { margin-bottom: 4px; }
.bh-comment-meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 3px; }
.bh-comment-author { font-size: 13px; font-weight: 600; }
.bh-comment-time { font-size: 11px; color: var(--t3, #999); }
.bh-comment-body { font-size: 14px; word-break: break-word; }
.bh-comment-body p { margin: 0 0 4px; }
.bh-comment-body p:last-child { margin: 0; }
.bh-no-comments { font-size: 13px; color: var(--t3, #999); }
.bh-reply-btn { background: none; border: none; color: var(--a, #d97706); font-size: 12px; cursor: pointer; padding: 2px 0; margin-top: 2px; }
.bh-anchor-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bd, #eee); }
.bh-anchor-popover-inner.bh-form-open .bh-anchor-actions { display: none; }
.bh-anchor-write { background: var(--a, #24292e); color: #fff; border: none; padding: 6px 14px; border-radius: 5px; cursor: pointer; font-size: 13px; font-family: inherit; }
.bh-anchor-write:hover { background: var(--a2, #3a4149); }
.bh-anchor-share { background: none; border: 1px solid var(--bd, #ddd); color: var(--t2, #555); padding: 6px 12px; border-radius: 5px; cursor: pointer; font-size: 13px; font-family: inherit; }
.bh-anchor-share:hover { border-color: var(--t3, #999); color: var(--t, #333); }
.bh-anchor-form { margin-top: 12px; }
.bh-anchor-form textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--bd, #ddd); border-radius: 6px; background: var(--bg, #fff); color: var(--t, #333); font-size: 14px; font-family: inherit; resize: vertical; }
.bh-anchor-form textarea:focus { outline: none; border-color: var(--a, #d97706); }
.bh-anchor-form button[type=submit] { background: var(--a, #d97706); color: #fff; border: none; border-radius: 6px; padding: 6px 16px; cursor: pointer; font-size: 13px; margin-top: 6px; font-family: inherit; }
.bh-anchor-form button[type=submit]:hover { background: var(--a2, #b45309); }

/* 底部评论列表的引文块（SSR 渲染） */
.comments-section .bh-quote { font-size: 13px; color: var(--t2, #666); background: var(--tbg, #fffbe6); border-left: 3px solid var(--a, #f0ad4e); padding: 6px 10px; border-radius: 0 4px 4px 0; margin: 0 0 8px; cursor: pointer; }
.comments-section .bh-quote:hover { filter: brightness(0.96); }

/* toast */
.bh-toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(10px); background: rgba(36,41,46,0.92); color: #fff; font-size: 13px; padding: 8px 18px; border-radius: 16px; z-index: 1200; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; font-family: inherit; }
.bh-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 分享面板 */
.bh-share-panel { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); }
.bh-share-card { background: var(--s, #fff); border-radius: 12px; padding: 20px; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,0.3); font-family: inherit; }
.bh-share-loading { color: var(--t3, #999); font-size: 14px; padding: 40px 60px; display: flex; align-items: center; justify-content: center; }
.bh-share-img-wrap { overflow-y: auto; }
.bh-share-img-wrap img { display: block; max-width: min(420px, 80vw); height: auto; border-radius: 6px; border: 1px solid var(--bd, #eee); }
.bh-share-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.bh-share-actions button { border: 1px solid var(--bd, #ddd); background: var(--s, #fff); color: var(--t, #333); font-size: 13px; padding: 7px 16px; border-radius: 5px; cursor: pointer; font-family: inherit; }
.bh-share-actions button:hover { border-color: var(--t3, #999); }
.bh-share-msg { text-align: center; font-size: 12px; min-height: 16px; margin-top: 8px; }

/* 分享卡选项 chips */
.bh-share-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.bh-share-opt-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bh-share-opt-label { font-size: 12px; color: var(--t3, #999); width: 32px; flex-shrink: 0; }
.bh-share-opt-chip { border: 1px solid var(--bd, #ddd); background: var(--s, #fff); color: var(--t2, #555); font-size: 12px; padding: 4px 12px; border-radius: 12px; cursor: pointer; font-family: inherit; }
.bh-share-opt-chip:hover { border-color: var(--t3, #999); }
.bh-share-opt-chip.bh-opt-active { background: var(--a, #24292e); color: #fff; border-color: var(--a, #24292e); }
