
/* 基础样式 */
body {
    background-color: #f9fafb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    text-decoration: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
}

/* 导航项样式 */
.nav-item {
    display: flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #4f46e5;
    transform: translateY(-2px);
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 12rem;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
     color: #055ce8;
    text-decoration: none;
    
}

.dropdown-item:hover {
    background-color: #eef2ff;
    color: #4f46e5;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .dropdown-menu {
        position: static;
        display: none;
        margin-top: 0;
        box-shadow: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }
}
