:root {
	--primary-color: #1890ff;
	--header-height: 64px;
	--sidebar-width: 280px;
	--border-color: #f0f0f0;
	--text-color: #333;
	--text-secondary: #666;
	--bg-color: #fff;
	--sidebar-bg: #fafafa;
	--hover-color: #e6f7ff;
	--shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
	background-color: #f5f5f5;
	color: var(--text-color);
	line-height: 1.6;
}

/* Header 样式 */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-height);
	background-color: var(--bg-color);
	display: flex;
	align-items: center;
	padding: 0 24px;
	box-shadow: var(--shadow);
	z-index: 100;
}

.header-left {
	display: flex;
	align-items: center;
	margin-right: 24px;
}

.logo {
	width: 40px;
	height: 40px;
	background-color: var(--primary-color);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	color: white;
	font-weight: bold;
}

.logo-text {
	font-size: 18px;
	font-weight: 600;
	color: var(--text-color);
}

.header-center {
	flex: 1;
	max-width: 600px;
	margin: 0 24px;
}

.search-box {
	width: 100%;
	position: relative;
}

.search-box input {
	width: 100%;
	height: 36px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 0 12px 0 40px;
	font-size: 14px;
	transition: all 0.3s;
}

.search-box input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-secondary);
}

.header-right {
	display: flex;
	align-items: center;
	position: absolute;
	right: 50px;
}

.header-menu {
	display: flex;
	list-style: none;
}

.header-menu li {
	margin-left: 20px;
	position: relative;
}

.header-menu a {
	text-decoration: none;
	color: var(--text-color);
	font-size: 14px;
	display: flex;
	align-items: center;
	padding: 6px 8px;
	border-radius: 4px;
	transition: all 0.2s;
}

.header-menu a:hover {
	background-color: var(--hover-color);
	color: var(--primary-color);
}

.header-menu i {
	margin-right: 6px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
	display: none;
	font-size: 20px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-color);
	margin-left: 16px;
}

/* 主布局 */
.main-layout {
	display: flex;
	margin-top: var(--header-height);
	min-height: calc(100vh - var(--header-height));
}

/* 侧边栏 */
.sidebar {
	width: var(--sidebar-width);
	background-color: var(--sidebar-bg);
	/* border-right: 1px solid var(--border-color); */
	padding: 24px 0;
	position: fixed;
	top: var(--header-height);
	bottom: 0;
	left: 0;
	overflow-y: auto;
	transition: transform 0.3s ease;
	z-index: 99;
}

.sidebar-title {
	padding: 0 24px 16px;
	font-size: 16px;
	font-weight: 600;
	color: var(--text-color);
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 16px;
}

.sidebar-menu {
	list-style: none;
}

.sidebar-menu li {
	position: relative;
}

.menu-item {
	display: flex;
	align-items: center;
	padding: 10px 24px;
	color: var(--text-color);
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
}

.menu-item:hover {
	background-color: var(--hover-color);
}

.menu-item.active {
	color: var(--primary-color) !important;
	background-color: var(--hover-color);
	border-right: 3px solid var(--primary-color);
}

.menu-item i {
	margin-right: 10px;
	width: 20px;
	text-align: center;
}

.submenu {
	list-style: none;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.submenu.active {
	max-height: 1000px;
}

.submenu-item {
	padding: 0px 24px 0px 24px;
	color: var(--text-secondary);
	text-decoration: none;
	display: block;
	transition: all 0.2s;
}

.submenu-item:hover, .submenu-item.active {
	color: var(--primary-color);
	/* background-color: var(--hover-color); */
}

.menu-toggle {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s;
}

.menu-toggle.active {
	transform: translateY(-50%) rotate(90deg);
}

.fa-chevron-right{
	top: 23px;
}



/* 优化ElementUI菜单样式 */
.sidebar-menu.el-menu {
    border-right: none;
    background: var(--sidebar-bg, #fff);
	max-width: 275px;
}
/* 一级菜单样式 */
.main_menu{
	margin-left: 5px;
    font-size: 17px;
}
/* .sidebar-menu .el-menu-item{
    font-size: 16px;
    padding-left: 20px !important;
    color: var(--text-color, #333);
    height: 50px;
    line-height: 50px;
} */

/* 二级菜单样式 */
.sidebar-menu .el-submenu .el-menu-item {
    padding-left: 20px !important;
    font-size: 16px;
    height: 45px;
    line-height: 45px;
}
.second-title{
    padding-left: 2px;
    font-size: 16px;
}

/* 三级菜单样式 */
.sidebar-menu .el-submenu .el-submenu .el-menu-item {
    padding-left: 35px !important;
    font-size: 15px;
    height: 40px;
    line-height: 40px;
}

/* 四级菜单样式 */
/* .sidebar-menu .el-submenu .el-submenu .el-submenu .el-menu-item {
    padding-left: 110px !important;
    font-size: 13px;
    height: 35px;
    line-height: 35px;
} */

.sidebar-menu .el-menu-item.is-active,
.sidebar-menu .el-submenu.is-active > .el-submenu__title {
    color: var(--primary-color, #409EFF) !important;
    background: var(--hover-color, #f5f7fa) !important;
    border-right: 3px solid var(--primary-color, #409EFF);
}
.sidebar-menu .el-menu-item a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
	line-height: 42px;
}
.sidebar-menu .el-menu-item a:hover {
    color: var(--primary-color, #409EFF);
}

.el-submenu.is-active i{
    color: var(--primary-color, #409EFF) !important;
}

/* 内容区域 */
.content {
	flex: 1;
	padding: 24px;
	margin-left: var(--sidebar-width);
}

.content-header {
	margin-bottom: 24px;
}

.content-title {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 16px;
}

.content-description {
	color: var(--text-secondary);
	margin-bottom: 24px;
	max-width: 800px;
}

.section {
	background-color: var(--bg-color);
	border-radius: 4px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.section-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}

.section-content {
	padding: 8px 0;
}

.section-content p {
	margin-bottom: 16px;
}

.feature-list {
	list-style: none;
}

.feature-list li {
	padding: 8px 0;
	display: flex;
	align-items: flex-start;
}

.feature-list i {
	color: var(--primary-color);
	margin-right: 10px;
	margin-top: 4px;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 24px;
	margin-top: 16px;
}

.feature-card {
	background: #fff;
	border-radius: 4px;
	padding: 20px;
	border: 1px solid var(--border-color);
	transition: all 0.3s;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
	border-color: var(--primary-color);
}

.feature-card i {
	font-size: 24px;
	color: var(--primary-color);
	margin-bottom: 12px;
}

.feature-card h3 {
	margin-bottom: 8px;
}

.feature-card p {
	color: var(--text-secondary);
	font-size: 14px;
}

.mainTable{
	width: 60%;
}

.year_select{
	margin: 0 4px 10px 4px;
}

.el-date-editor.el-input, .el-date-editor.el-input__inner {
	width: 150px;
}

#main_echarts{
	width: 70%;
	height: 400px;
	position: relative;
	left: -5%;
}

.section_tabs #main_echarts1, #main_echarts2{
	width: 900px;
	height: 400px;
	position: relative;
	left: -4%;
	margin-top: 3%;
}

.radio_day{
	margin: 0 5px 5px 5px;
	.el-radio-button--small .el-radio-button__inner{
		padding: 9px 10px;
	}
}

.data_source{
	a{
        color: var(--primary-color);
        text-decoration: none;
    }
}

.el-table th>.cell, .el-table td>.cell {
    white-space: pre-wrap;
    word-break: break-all;
}






















/* 响应式设计 */

@media (min-width: 1920px) {
	.section_tabs #main_echarts1, #main_echarts2{
		width: 1200px;
		height: 400px;
		position: relative;
		left: -4%;
		margin-top: 3%;
	}
}

@media (max-width: 992px) {
	.header-center {
		max-width: 400px;
	}
}

@media (max-width: 768px) {
	.header-left{
		display: none;
	}
	.header-center {
		max-width: 200px;
	}
	.header-right {
		right: auto;
		left: -30px
	}

	.sidebar {
		transform: translateX(-100%);
	}

	.sidebar.open {
		transform: translateX(0);
	}

	.content {
		margin-left: 0;
	}

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

	.overlay {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 98;
		display: none;
	}

	.overlay.active {
		display: block;
	}

	.mainTable{
		width: 100%;
	}

	#main_echarts{
		width: 100%;
		height: 300px;
		position: relative;
		left: 3%;
		margin-top: 3%;
	}

	.section_tabs #main_echarts1, #main_echarts2{
		width: 355px;
		height: 300px;
		position: relative;
		left: 1%;
	}
	
	.section_tabs{
		.el-date-editor.el-input, .el-date-editor.el-input__inner {
			width: 174px;
		}
	}

	/* 日期选择弹框 */
	.el-picker-panel__sidebar {
	  width: 100%;
	}
	.el-picker-panel {
	  width: 350px!important;
	}
	.el-picker-panel__content {
	  width: 100%;
	}
	.el-picker-panel__body{
	  margin-left: 0!important;
	  display: flex;
	  flex-direction: column;
	  min-width: auto!important;
	}
	.el-picker-panel__sidebar {
	  position: relative;
	}
	.el-picker-panel__body-wrapper {
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	}
	
	.el-date-editor.el-input, .el-date-editor.el-input__inner {
		width: 155px;
	}

}

@media (max-width: 576px) {
	.header {
		padding: 0 16px;
	}

	.logo-text {
		display: none;
	}

	.header-center {
		margin: 0 12px;
	}

	.header-menu li span {
		display: none;
	}

	.header-menu li i {
		margin-right: 0;
	}

	.content {
		padding: 16px;
	}
}
