@charset "UTF-8";
/* 消除所有边距 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nav-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #1a1a1a;
}

.nav-item {
    /* 消除间距 */
    margin: 0;
    padding: 0;
    
    /* 基础样式 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: none;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* 颜色循环系统 */
    background: #ff5733;
}

/* 5色无缝循环 */
.nav-item:nth-child(5n+1) { background: #ff5733; }
.nav-item:nth-child(5n+2) { background: #f4d03f; }
.nav-item:nth-child(5n+3) { background: #3498db; }
.nav-item:nth-child(5n+4) { background: #2ecc71; }
.nav-item:nth-child(5n+5) { background: #e74c3c; }

/* 悬停效果 */
.nav-item:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav-item {
        font-size: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .nav-container {
        grid-template-columns: repeat(2, 1fr);
    }
}