/* 基本重置和布局设置 */  

body {
    display: flex;
    margin: 0;
    height: 100vh;
}
 .container {
	width: 100%;
	height: 100vh;
	display: flex;
	/*display: inline-block;*/
	position: relative;
	/* 使子菜单能够相对于它定位 */
      }

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	list-style: none;
}

.sidebar {
	width: 220px;
	background-color: #000;
	color: #fff;
	transition: width 0.3s;
	position: relative;
	font-size:15px;
        }

.sidebar.collapsed {
	width: 50px;
}

.toggle-btn {
	width: 100%;
	height: 50px;
	padding: 15px;
	font-size: 20px;
	background-color: #000;
	border: none;
	color: #fff;
	text-align: left;
	cursor: pointer;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.nav-list  {
	padding-top: 60px;

	list-style: none;
	/*padding: 0;*/
	margin: 0;
	position: relative;
	/* 使子菜单能够相对于它定位 */
}

.nav-list li img {
	width: 20px;
	/* 图标宽度 */
	height: 20px;    
	margin-right: 10px;

}

.nav-list li  {
	padding: 12px;
	color: #fff;
	display: flex;
	align-items: center;
	cursor: pointer;

	position: relative;
	z-index: 10;
}

.sidebar li:hover {
	background-color: rgba(255, 255, 255, 0.3);        
}

.content {
	flex: 1;
	padding: 10px;
}

/* 折叠时隐藏文本 */
.sidebar.collapsed .nav-list li span  {
	display: none;
}

header {
	width: 100%;
	height: 60px;
	margin-bottom: 10px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.headerRight {  
    display: flex; /* 使.headerRight成为一个Flex容器 */  
    align-items: center; /* 垂直居中对齐其内部的子元素 */  
}

.setUp,
.signIn
 {
     
	padding: 10px 20px;
	box-sizing: border-box;
	background-color: #000;
	color: #fff;
	font-size: 20px;
	border-radius: 5px;
	cursor: pointer;
    margin-left: 20px; 

}


.title {
	width: 100%;
	/* height: 100px; */
	padding: 0 20px;
	border-radius: 5px;
	/*background-color: #eee;*/
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.titleLeft {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.titleLeft::-webkit-scrollbar {
	display: none;
	/* Chrome, Safari, Opera */
}

.preview {
	padding: 10px 10px;
	margin-right: 20px;
	width: 50%;
}
.preview h4 a{
	float: right;
	text-decoration: none;
	color: black;
}
.p1 p{
	line-height: 30px;
	border-bottom: 1px solid #eee;
}
.p1 p span{
	padding-right: 10px;
}
.p2 p{
	display: flex;
	justify-content: space-between;
	line-height: 30px;
}
.fundBoxRight h3 a{
	float: right;
	text-decoration: none;
	color: black;
}
.buy a{
	float: right;
	text-decoration: none;
	color: black;
}
.sell a{
	float: right;
	text-decoration: none;
	color: black;
}
.fundBox {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.fundBoxLeft {
	width: 50%;
}

.fundBoxRight {
	width: 50%;
}

h3,
h4 {
	margin-bottom: 20px;
}

.fundListNav {
	width: 100%;
	display: flex;
	justify-content: space-between;
	font-weight: bold;
	font-size: 19px;
	margin-bottom: 10px;
}

.fundListNav li {
	width: 25%;
}

.fundListBox {
	height: 450px;
	overflow-y: scroll;
	overflow: -moz-scrollbars-none;
	/* Older Firefox */
	-ms-overflow-style: none;
	/* IE 10+ */
	scrollbar-width: none;
	/* Firefox */
	-webkit-overflow-scrolling: touch;
	/* iOS Safari */
}


.fundListBox::-webkit-scrollbar {
	display: none;
	/* Chrome, Safari, Opera */
}

.fundList {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
}

.fundList li {
	width: 25%;
	height: 40px;
	text-align: left;
	line-height: 40px;
}

.transaction {
	width: 90%;
	line-height: 30px;
	background-color: #eee;
	padding: 10px;
	margin-bottom: 20px;
	border-radius: 5px;
}

.realTime {
	width: 90%;
	line-height: 40px;
	background-color: #eee;
	padding: 10px;
	margin-bottom: 20px;
	border-radius: 5px;
}

.operation span {
	padding: 0 12px;
}

/* section {
	display: none;
} */

section.active {
	display: block;
}
  

        /* 隐藏二级菜单 */
.submenu {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	 background-color: black;

	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	padding: 0;
	z-index: 99;
}

.submenu p {
	display: block;
}

.submenu p a {
	color: #ffffff;
	padding: 12px;
	text-decoration: none;
	display: block;
}

.submenu p:hover {  
background-color: #333; /* 稍微改变背景色以增加对比度 */  
/* 添加或增强阴影效果 */  
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);  

}  

.menu-item.has-children:hover>.submenu {
  
	display: block;
}


  
/* .main-content {  
    flex-grow: 1; 占据剩余空间  
    padding: 20px;  
    overflow-y: auto; 如果内容过多，允许滚动  
    height: 100vh;
	display:flex;
	flex-direction: column;
	
}   */
  
#main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
} 

.header {  
    background-color: #007bff;  
    color: white;  
    padding: 10px 20px;  
    margin-bottom: 20px;  
}  
  

  
.footer {  
    background-color: #f8f9fa;  
    padding: 10px 20px;  
    margin-top: 20px;  
    text-align: center;  
}

#contentWrapper {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
}

#contentFrame {
    flex-grow: 1;
    border: none;
    width: 100%;
    height: 100%;
}