/* ======================================= */
/* 导航网页面 nav.css 专用样式 (V9 极简 3D 弹出卡片版) */
/* ======================================= */
/* 品牌主色：#4f46e5 (Indigo Blue) */
/* 浅色高亮：#eef2ff */

/* 页面标题：现代、简洁、有力 */
.nav-title {
    text-align: left;
    margin: 0 0 3rem; 
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    border-left: 5px solid #4f46e5; /* 品牌色装饰线 */
    padding-left: 15px;
}

/* 分类标题：使用品牌色进行区分 */
.category-title {
    color: #4f46e5; /* 品牌主色 */
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0; 
    padding-bottom: 5px;
    border-bottom: 2px solid #e2e8f0; /* 浅分割线 */
}

/* 链接列表 (紧凑网格布局) */
.links-grid {
    list-style: none;
    padding: 0;
    display: grid;
    /* PC端默认 5 列 */
    grid-template-columns: repeat(5, 1fr); 
    gap: 12px; /* 减小间隙 */
    margin-bottom: 30px;
}

/* 单个链接卡片 - 极简白卡 */
.links-grid li {
    background: #ffffff; 
    border-radius: 10px; /* 略微增加圆角 */
    overflow: hidden;
    /* 使用更平滑的过渡曲线 */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* 干净的初始阴影 */
    border: 1px solid #f1f5f9; 
    position: relative;
}

/* 链接内容 (跳转按钮)：已改小并居中 */
.links-grid a {
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem; 
    padding: 15px 10px; /* 维持小按钮大小 */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.5px; /* 增加一点间距，提升美观度 */
    text-align: center; /* 确保旧浏览器兼容性 */
}

/* 悬停效果：最优化按钮反馈 (3D Pop + 品牌色光晕) */
.links-grid li:hover {
    transform: translateY(-5px) scale(1.02); /* 明显上浮和略微放大 */
    /* 核心花哨反馈：品牌色阴影/光晕 */
    box-shadow: 
        0 8px 15px rgba(79, 70, 229, 0.25), /* 底部主阴影 */
        0 0 0 3px #4f46e5; /* 品牌色细边框/光环 */
    border-color: transparent; /* 隐藏原来的浅色边框 */
    z-index: 2; /* 确保悬停元素在顶部 */
}

/* 链接悬停时的花哨反馈：文字变品牌色 */
.links-grid a:hover {
    color: #4f46e5; 
    background: transparent; /* 保持背景纯净 */
}

/* 响应式优化 */
@media (min-width: 1200px) {
    /* 宽屏使用 6 列，最大化紧凑度 */
    .links-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    /* 中屏 4 列 */
    .links-grid {
        grid-template-columns: repeat(4, 1fr); 
        gap: 10px;
    }
}

@media (max-width: 600px) {
    /* 手机端 3 列 (更密集) */
    .links-grid {
        grid-template-columns: repeat(3, 1fr); 
        gap: 8px;
    }
    .links-grid a {
        font-size: 0.9rem;
        padding: 10px 5px; /* 进一步压缩内边距，使按钮更小 */
        letter-spacing: normal;
    }
    .links-grid li {
        border-radius: 6px;
    }
}
