#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #e68739;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
}
#nav p {
    margin: 0;
    align-content: center;
}

.NavText {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    margin-left: 8px;
}

#nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    width: 100%;
    max-width: 800px;
}

/* 图标样式 - 固定在左侧 */
#nav .logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: auto;
    display: block;
    z-index: 1001;
    border-radius: 40%; /* 使图标看起来更美观 */
}

#nav ul li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
}

#nav li {
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    height: auto;
    margin: 0;
    background-color: #35c4ae;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    transition: all 0.3s ease;
    list-style-type: none;
    gap: 8px;
}

#nav li:hover {
    background-color: #2b98b3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

#nav li img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 页面内容样式 */
.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content h1 {
    color: #333;
    margin-bottom: 20px;
}

.content p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}
/* 响应式设计 */
@media screen and (max-width: 768px) {
    #nav ul {
        gap: 10px;
    }
    
    #nav li {
        padding: 6px 12px;
    }
    
    #nav ul li a {
        font-size: 0.9rem;
    }
    
    #nav .logo {
        left: 10px;
        height: 32px;
    }
}

@media screen and (max-width: 600px) {
    #nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    #nav li {
        width: auto;
        min-width: 120px;
        text-align: center;
        margin: 0;
        padding: 6px 10px;
    }
    
    #nav ul li a p {
        font-size: 0.85rem;
    }
    
    #nav li img {
        width: 20px;
        height: 20px;
    }
    
    #nav .logo {
        position: static;
        transform: none;
        margin-right: auto;
        margin-left: 10px;
        height: 28px;
    }
}

@media screen and (max-width: 400px) {
    #nav li {
        min-width: 100px;
        padding: 5px 8px;
    }
    
    #nav ul li a  p{
        font-size: 0.8rem;
    }
    
    #nav .logo {
        height: 24px;
    }
}