/* header背景颜色 */
.bg-header {
	background-color: rgba(255, 255, 255, 0);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99;
	box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* header 左，中，右布局 */
.header-logo {
	width: 20%;
	line-height: 80px;
}
.header-logo img {
	width: 150px;
	height: 60px;
	object-fit: contain; /* 确保图片完整显示，不拉伸 */
}

.header-menu {
	width: 70%;
	line-height: 80px;
	position: static;
}

.header-user {
	width: 10%;
	line-height: 80px;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

/* header 中的菜单样式 */
.header-menu>ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.header-menu>ul>li {
	float: left;
}

/* 菜单链接样式 */
.header-menu>ul>li> a:link,
.header-menu>ul>li>a:visited {
	display: inline-block;
	color: #000;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	line-height: 80px;
	text-decoration: none;
}

/* 菜单移入的样式 */

.header-menu>ul>li>a:hover {
	display: inline-block;
	/* background-color: #000000; */
	/* opacity: 0.3; */
	color: #fff;
	text-decoration: none;
}

.header-menu>ul>li:hover {
	background-color: rgba(0, 0, 0, 0.35);
}

.header-menu>ul>li:hover>a:link {
	color: #fff;
	text-decoration: none;
}

/* 鼠标移入header时，背景色改变 */
.bg-header:hover,
body:hover .bg-header {
	background-color: rgba(255, 255, 255, 0.85);
	transition: all 1s linear;
}

/* 右侧登录和购物车样式 */
.header-user>li {
	/* float: right; */
	display: inline-block;
	padding-left: 0px;
	padding-right: 10px;
	cursor: pointer;
	margin-right: 1px;
}

.header-user>li>a:link,
.header-user>li>a:visited {
	color: #000;
	text-decoration: none;
	cursor: pointer;
}

/* 子菜单盒子样式 */
.sub-menu {
	position: absolute;
	left: 0;
	top: 80px;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.35);
	height: 0;
	overflow: hidden;
}

.header-menu>ul>li:hover .sub-menu {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100px;
	
	transition: height 0.5s linear;
}

/* 子菜单中，每项样式 */
.sub-menu>ul {
	width: 30%;
	min-width: 300px;
	margin: 0 auto;
	padding: 0;
	list-style: none;	
	line-height:30px;
	font-size: 0.9rem;
}

.sub-menu>ul>li {
	display: inline;
	color: #fff;
}

.sub-menu>ul>li>a:link,
.sub-menu>ul>li>a:visited {
	padding: 0 20px;
	text-decoration: none;
	color: #fff;
}
.sub-menu>ul>li>a:hover {
	color: #fff;
	border-bottom: 2px solid white;
	
}

/* 登录模态框样式 +背景 */
#loginModal{
	z-index: 1051; /*遮罩层是1040*/
}
.login-modal-header{
	height: 250px;
	background-color: #1b4357;
	background-image: url(../img/modal.gif);
	background-position: center top;
	background-size: 70%;
	background-repeat: no-repeat;
}

.login-modal-header > h5{
	display: block;
	margin-top: 200px;
	color: white;
}
/* 登录表单 */
.login-form{
	width: 70%;
	margin: 0 auto;
	font-size: 0.7rem;
	color: #1b4357;
}
/* 表单成员 */
.login-input-item{
	margin-top: 20px;
	margin-bottom: 10px;
}
/* 输入 框  */
.login-input-item input{
	width: 100%;
	height: 30px;
	text-indent: 0.5rem;
}
.login-input-item input::-webkit-input-placeholder{
	font-size: 0.4rem;
	text-indent: 0.5rem;
}
/* 注册，忘记密码样式 */
.login-form a:link,
.login-form a:visited{
	color: #1b4357;
}
.login-form a:hover{
	color: #000;
	text-decoration: underline;
}
/* 模态框 footer */
.login-modal-footer{
	display: block;
	text-align: center;
}
/* 登录按钮 */
.login-modal-footer-btn{
	width: 80%;
	background-color: #1b4357;
	color: #DDDDDD;
	border-width: 0;
	padding: 3px 0;
}
.login-modal-footer-btn:hover{
	background-color: #000000;
	color: white;
}