/* 来自 E:\导航 第一套模板「经典网格」的玻璃模糊样式 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body.tpl-classic {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #f5f5fa;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

.nav-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image .6s ease;
}

.nav-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
}

.glass {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(var(--glass-blur, 14px)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur, 14px)) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
    border-radius: 18px;
}

.nav-header {
    text-align: center;
    padding: 40px 16px 24px;
}

.nav-header h1 {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.nav-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-cat-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cat-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #6c8cff;
    border-radius: 2px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 14px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: transform .18s ease, background .18s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .08);
}

.nav-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, .15);
    font-weight: 700;
    font-size: 18px;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.empty-tip {
    text-align: center;
    color: rgba(255, 255, 255, .65);
    padding: 40px 0;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }

@media (max-width: 640px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
