        /* 页面背景图片 */
        body {
            background-image: url('https://cdn.8i5.net/2026/03/hero.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            font-family: 'Arial', sans-serif;
            /* 添加毛玻璃效果 */
            position: relative;
        }

        /* 背景毛玻璃效果 */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: inherit;
            backdrop-filter: blur(10px);
            z-index: -1;
        }
/* ===== 主容器 ===== */
.link-container {
    max-width: 1440px;
    margin: 10px auto;
    padding: 28px 32px;
    display: flex;
    gap: 32px;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-radius: 20px;
background: rgba(255, 255, 255, 0.22);
    border: 2px solid #ffffff;
    box-shadow: 0 0px 8px rgb(0 0 0 / 10%);
    min-height: calc(100vh - 90px - 80px);
    align-items: flex-start;
}

/* ===== 左侧分类侧栏 ===== */
.link-sidebar {
    flex: 0 0 220px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 24px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
    transition: all 0.3s;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(79, 70, 229, 0.15);
}

.sidebar-header i {
    color: #4f46e5;
    font-size: 22px;
}

.link-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-cat-list li {
    margin-bottom: 4px;
}

.link-cat-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.25s ease;
    background: transparent;
    position: relative;
}

.link-cat-list a i {
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.link-cat-list a:hover {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    transform: translateX(4px);
}

.link-cat-list a:hover i {
    opacity: 1;
}

.link-cat-list a.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.link-cat-list a.active i {
    opacity: 1;
}

.cat-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: inherit;
}

.link-cat-list a.active .cat-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== 右侧主内容 ===== */
.link-main {
    flex: 1;
    min-width: 0;
}

/* 标题区域 */
.link-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 32px;
    gap: 12px;
}

.link-title h2 {
    font-size: 30px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff, #ad88ff, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.link-title h2 i {
    font-size: 34px;
    -webkit-text-fill-color: #4f46e5;
}

/* ===== 卡片网格（改用 flex 居中） ===== */
.link-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* 关键：卡片整体居中 */
    gap: 20px;
    /* 取消原来的 grid 设置 */
}

.link-item {
    /* 固定宽度，自动换行 */
    flex: 0 0 240px;          /* 桌面每行显示 4~5 个，自动居中 */
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.15, 0.75, 0.35, 1);
    text-decoration: none;
    color: #0f172a;
    position: relative;
    overflow: hidden;
}

/* 光效 */
.link-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.link-item:hover::after {
    opacity: 1;
}

.link-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 48px rgba(79, 70, 229, 0.18);
    border-color: #4f46e5;
    background: rgba(255, 255, 255, 0.85);
}

.link-item .link-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.link-item:hover .link-avatar {
    border-color: #4f46e5;
    transform: scale(1.05);
}

.link-item .link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.link-item .link-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-item .link-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.link-item:hover .link-info h3 {
    color: #4f46e5;
}

.link-item .link-info p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.no-links {
    width: 100%;
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(4px);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 44px;
}

.pagination a,
.pagination .current,
.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1e293b;
}

.pagination a:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
}

.pagination .current {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.pagination .dots {
    background: transparent;
    border: none;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .link-container {
        padding: 24px 20px;
        gap: 24px;
    }
    .link-sidebar {
        flex: 0 0 180px;
        padding: 18px 14px;
    }
    .link-item {
        flex: 0 0 200px;   /* 平板减小卡片宽度 */
    }
}

@media (max-width: 768px) {
    .link-container {
        flex-direction: column;
        padding: 20px 16px;
        border-radius: 28px;
        min-height: auto;
    }
    .link-sidebar {
        flex: 1 1 auto;
        width: 100%;
        position: static;
        padding: 16px 14px;
        border-radius: 20px;
    }
    .sidebar-header {
        margin-bottom: 12px;
        font-size: 16px;
    }

    /* ---- 手机端分类导航改为横向滚动 ---- */
    .link-cat-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .link-cat-list::-webkit-scrollbar {
        display: none;
    }
    .link-cat-list li {
        flex: 0 0 auto;
        margin-bottom: 0;
    }
    .link-cat-list a {
        padding: 6px 16px;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.2);
        font-size: 13px;
        gap: 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .link-cat-list a.active {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
    }
    .link-cat-list a:hover {
        transform: none;
    }
    .cat-count {
        font-size: 11px;
        padding: 0 8px;
    }

    /* ---- 卡片调整 ---- */
    .link-item {
        flex: 0 0 160px;   /* 手机端卡片宽度 */
    }
    .link-item .link-avatar {
        width: 44px;
        height: 44px;
    }
    .link-item .link-info h3 {
        font-size: 14px;
    }
    .link-item .link-info p {
        font-size: 11.5px;
    }
    .link-title h2 {
        font-size: 24px;
    }
    .link-title h2 i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .link-item {
        flex: 0 0 150px;   /* 小屏手机每行2个 */
    }
    .link-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 10px;
        gap: 8px;
    }
    .link-item .link-avatar {
        width: 50px;
        height: 50px;
    }
    .link-item .link-info {
        align-items: center;
    }
    .link-item .link-info h3 {
        white-space: normal;
        text-overflow: clip;
    }
    .pagination a,
    .pagination .current {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}