/* ===== 公共样式（动静分离：原液态玻璃 WebGL 全部移除，只保留轻量 CSS，解决卡顿） ===== */
body { font-feature-settings: 'tnum'; }
html { scroll-behavior: smooth; }
::selection { background: #FF7D00; color: #fff; }

/* 吸顶导航：纯 CSS 半透明+轻模糊（单元素，性能开销极低） */
.glass-bar { background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* 主按钮（蓝） / 次按钮（白） */
.g-ink { background: #165DFF; color: #fff; transition: background .15s ease; }
.g-ink:hover { background: #124BD0; }
.g-quiet { background: #fff; color: #1D2129; transition: background .15s ease; }
.g-quiet:hover { background: #F7F8FA; }

/* 输入框 / 面板 */
.glass-field { background: rgba(255,255,255,0.9); }
.glass-panel { background: #fff; }

.border-subtle { border-color: #E5E6EB; }
.shadow-plain { box-shadow: 0 1px 2px rgba(32,29,25,0.04); }

/* 长介绍折叠 */
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 分类锚点导航条 */
.catnav { scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a.active { color: #165DFF; border-color: #165DFF; }

/* 资源定位高亮（/r/id.html 跳转过来时） */
.res-card.focus-ring { outline: 2px solid #165DFF; outline-offset: 2px; }
