/* v41.css —— 悬浮窗（快速切换接口预设）。默认很小、贴边、停几秒自动缩进去，不盖住别的东西 */
#xnFloat { position: absolute; z-index: 880; top: 0; right: 4px; left: auto; display: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .28s ease, opacity .28s ease; will-change: transform; }
#xnFloat.on { display: block; }
#xnFloat.kb, #xnFloat.dragging-off { opacity: 0 !important; pointer-events: none !important; }
#xnFloat[data-side="l"] { left: 4px; right: auto; }
#xnFloat.idle { opacity: var(--xf-op, .55); transform: translateX(52%); }
#xnFloat[data-side="l"].idle { transform: translateX(-52%); }
#xnFloat.dragging { transition: none; opacity: 1; transform: none; }

.xf-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; border: none; outline: none; cursor: pointer; font-family: inherit; font-weight: 600; letter-spacing: .2px; white-space: nowrap; color: var(--xf-tx, var(--on-accent, #fff)); background: var(--xf-bg, var(--theme-color, #ff8fb1)); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); border-radius: 999px; touch-action: none; }
.xf-btn::after { content: ""; position: absolute; inset: -8px; }          /* 看着小，但手指好点 */
.xf-btn svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xf-btn .xf-t { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.xf-btn .xf-m { font-weight: 400; opacity: .78; max-width: 70px; overflow: hidden; text-overflow: ellipsis; }

#xnFloat[data-size="s"] .xf-btn { height: 24px; min-width: 24px; padding: 0 8px; font-size: 11px; }
#xnFloat[data-size="m"] .xf-btn { height: 30px; min-width: 30px; padding: 0 11px; font-size: 13px; }
#xnFloat[data-style="dot"] .xf-btn { padding: 0; width: 24px; }
#xnFloat[data-style="dot"][data-size="m"] .xf-btn { width: 30px; }
#xnFloat[data-look="glass"] .xf-btn { background: color-mix(in srgb, var(--xf-bg, var(--theme-color, #ff8fb1)) 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .5); }

/* 点开后的小面板 */
#xnFloatPop { position: absolute; z-index: 881; width: 206px; max-width: calc(100% - 16px); max-height: 52%; display: none; flex-direction: column; background: var(--card-bg, #fff); color: var(--theme-dark, #1a1a1e); border: .5px solid var(--border-color, #ececf0); border-radius: 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); overflow: hidden; font-size: 14px; animation: xfIn .14s ease-out; }
#xnFloatPop.on { display: flex; }
@keyframes xfIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.xf-hd { padding: 9px 12px 6px; font-size: 12px; color: var(--text-sub, #9a9aa2); }
.xf-seg { display: flex; margin: 8px 10px 2px; padding: 2px; border-radius: 10px; background: color-mix(in srgb, var(--text-sub, #9a9aa2) 16%, transparent); }
.xf-seg button { flex: 1; border: none; background: none; color: inherit; font: inherit; font-size: 12px; padding: 5px 4px; border-radius: 8px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xf-seg button.on { background: var(--card-bg, #fff); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); font-weight: 600; }
.xf-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 0 6px; }
.xf-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 12px; border: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xf-item:active { background: color-mix(in srgb, var(--text-sub, #9a9aa2) 14%, transparent); }
.xf-item .xf-n { min-width: 0; flex: 1; overflow: hidden; }
.xf-item .xf-n b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xf-item .xf-n small { display: block; font-size: 11px; color: var(--text-sub, #9a9aa2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xf-item.cur .xf-ck { display: block; }
.xf-ck { display: none; flex: none; width: 16px; height: 16px; fill: none; stroke: var(--theme-color, #ff8fb1); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.xf-empty { padding: 12px; font-size: 13px; line-height: 1.6; color: var(--text-sub, #9a9aa2); }
.xf-foot { padding: 6px 12px 9px; font-size: 11px; line-height: 1.5; color: var(--text-sub, #9a9aa2); border-top: .5px solid var(--border-color, #ececf0); }
