/* 中链导航前台补充样式（配合 Tailwind 使用） */

/* 苹果系统字体栈 */
.font-sans {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Segoe UI", sans-serif;
}

/* 图标加载失败时显示首字母 */
.link-card img[src=""] { visibility: hidden; }

/* 描述单行 + 尾部渐隐（文字短于容器时渐隐不可见，无副作用） */
.desc-fade {
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 97%);
    mask-image: linear-gradient(to right, #000 72%, transparent 97%);
}

/* 入场动画 */
@media (prefers-reduced-motion: no-preference) {
    .cat-section {
        animation: fadeUp .5s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* 滚动条（细腻风） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

/* 隐藏分类/搜索过滤 */
.cat-section.hidden-by-cat, .cat-section.hidden-by-search,
.link-card.filtered { display: none !important; }

/* 分类吸顶条的滚动条隐藏 */
#cat-nav { scrollbar-width: none; }
#cat-nav::-webkit-scrollbar { display: none; }
