/* 返回顶部按钮：圆形，图标在上、文字在下。文字容器限宽 2.1em，让「返回顶部」四字自然折成两行 */
/* bottom 保持原值 24px：未登录（右下角只有它一个）时位置与改造前完全一致 */
body.theme-app .back-to-top{bottom:24px;display:none;position:fixed;right:24px;width:72px;height:72px;padding:0;border-radius:50%;background:rgba(31,31,44,.92);color:#fff;border:1px solid #3a3a4a;flex-direction:column;align-items:center;justify-content:center;gap:3px;white-space:normal;font-size:13px;line-height:1.15;cursor:pointer;z-index:90;backdrop-filter:blur(10px);touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .2s,transform .15s}body.theme-app .back-to-top.show{display:flex}body.theme-app .back-to-top-icon{margin:0;font-size:20px;line-height:1}body.theme-app .back-to-top-text{width:2.1em;font-size:13px;line-height:1.15;text-align:center}body.theme-app .back-to-top:hover{background:#fe2c55}body.theme-app .back-to-top:active{transform:scale(.92)}
/* 浏览记录浮动入口：与返回顶部同为圆形、同尺寸同配色，两者在右下角垂直叠放（记录在下、返回顶部在上）。
   记录的 bottom 恒为 24px 且登录后常驻，不受返回顶部 .show 显隐影响，所以返回顶部出现/消失时记录不会跳动；
   反向的位置联动由 body.has-history-float 承担（common.js 判定登录态后打的类），
   未登录时该类不存在，返回顶部落回原来的 24px。 */
body.theme-app .history-float{bottom:24px;display:flex;text-decoration:none;position:fixed;right:24px;width:72px;height:72px;padding:0;border-radius:50%;background:rgba(31,31,44,.92);color:#fff;border:1px solid #3a3a4a;flex-direction:column;align-items:center;justify-content:center;gap:3px;white-space:normal;font-size:13px;line-height:1.15;cursor:pointer;z-index:90;backdrop-filter:blur(10px);touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .2s,transform .15s}
/* display:flex 会盖掉浏览器对 [hidden] 的默认 display:none，未登录时必须显式再隐藏一次 */
body.theme-app .history-float[hidden]{display:none}
/* icons.svg 里 icon-history 的 fill 写的是 var(--fill-0, white)，这里注入 currentColor 让图标跟随按钮文字色 */
body.theme-app .history-float-icon{width:22px;height:22px;margin:0;flex:none;--fill-0:currentColor;color:inherit}
body.theme-app .history-float-text{width:2.1em;font-size:13px;line-height:1.15;text-align:center}
body.theme-app .history-float:hover{background:#fe2c55}
body.theme-app .history-float:active{transform:scale(.92)}
/* 登录后记录入口占住 24px 那一档，返回顶部抬到 108px = 24(记录 bottom) + 72(记录直径) + 12(间距) */
body.theme-app.has-history-float .back-to-top{bottom:108px}
/* 移动端：整体缩一档，右下角占位更小，少挡正文 */
@media (max-width:768px){body.theme-app .back-to-top{bottom:16px;right:16px;width:64px;height:64px;padding:0}body.theme-app .back-to-top-icon{margin:0;font-size:18px}body.theme-app .back-to-top-text{width:2.1em;font-size:12px}
body.theme-app .history-float{bottom:16px;right:16px;width:64px;height:64px;padding:0}body.theme-app .history-float-icon{width:20px;height:20px;margin:0}body.theme-app .history-float-text{width:2.1em;font-size:12px}
/* 移动端返回顶部 bottom 90px = 16(记录 bottom) + 64(记录直径) + 10(间距)，两枚叠起来总高 154px */
body.theme-app.has-history-float .back-to-top{bottom:90px}}
