/* 全局细滚动条：轨道透明、滑块半透明中性灰、hover 加深。
   WebKit/Blink(Chrome/Edge/Safari) 与 Firefox 分别处理。
   .no-scrollbar（侧边栏/tab 栏）仍完全隐藏，不受此影响。 */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.35) transparent;
}
*:hover {
    scrollbar-color: rgba(120, 120, 120, 0.6) transparent;
}

/* WebKit / Blink */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.35);
    border-radius: 9999px;
    border: 2px solid transparent;        /* 透明边框让可见滑块缩到 ~4px，制造悬浮感 */
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.6);
    background-clip: padding-box;
}
::-webkit-scrollbar-corner {
    background: transparent;
}

/* 暗色模式：用更亮的灰 */
.dark * {
    scrollbar-color: rgba(180, 180, 180, 0.3) transparent;
}
.dark *:hover {
    scrollbar-color: rgba(180, 180, 180, 0.55) transparent;
}
.dark ::-webkit-scrollbar-thumb {
    background: rgba(180, 180, 180, 0.3);
    background-clip: padding-box;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 180, 180, 0.55);
    background-clip: padding-box;
}
