/* 导航栏样式 */
/* 注意：CSS变量、全局重置和container样式已移至public.css */

header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	/* padding: 15px 0; */
	transition: var(--transition);
}

header.scrolled {
	background-color: rgba(255, 255, 255, 0.98);
	box-shadow: var(--box-shadow);
	padding: 8px 0;
}

header.transparent {
	background-color: transparent;
	padding: 15px 0;
}

header.transparent:hover {
	background-color: rgba(255, 255, 255, 0.98);
}

header.transparent:hover .nav-links a {
	color: var(--dark-color);
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
}

.logo-img {
	height: 40px;
	margin-right: 10px;
	display: flex;
	align-items: center;
}
.logo-img a {
	display: flex;
	align-items: center;
	width: 105px;
	height: 50px;
}

.logo-img img {
	max-height: 100%;
}

.logo-img .header-iyasocare-logo {
	font-size: 42px;
	color: white;
	transition: var(--transition);
	display: flex;
	align-items: center;
}

header.scrolled .logo-img .header-iyasocare-logo {
	font-size: 38px;
}

header.scrolled .logo-img a {
	width: 90px;
}
header.transparent:hover .logo-text {
	color: var(--primary-color);
}
header.transparent:hover .header-iyasocare-logo {
	color: var(--primary-color);
}

header.scrolled .logo-text {
	color: var(--primary-color);
}
header.scrolled .header-iyasocare-logo {
	color: var(--primary-color);
}

.nav-links {
	display: flex;
}

.nav-links li {
	margin-left: 35px;
}

.nav-links a {
	font-weight: 500;
	position: relative;
	padding: 5px 0;
	transition: var(--transition);
	color: white;
}

header.scrolled .nav-links a {
	color: var(--dark-color);
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
	width: 100%;
}

.nav-toggle {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: white;
	z-index: 1001;
	transition: var(--transition);
}



header.transparent:hover .nav-toggle {
	color: var(--dark-color);
}

header .nav-toggle i:hover {
	color: var(--primary-color);
}

header.scrolled .nav-toggle {
	color: var(--dark-color);
}

/* 移动端导航显示时，固定body防止滚动 */

body.menu-open {
	overflow: hidden;
}



@media (max-width: 1000px){
	.nav-links li {
		margin-left: 15px;
	}
	.logo-text {
		display: none;
	}
}

@media (max-width: 768px) {
	header.scrolled {
		padding: 2px 0;
	}
	header > .container {
		padding: 0 10px;
	}
	.nav-toggle {
		display: block;
		font-size: 1.8rem;
		padding: 2px;
		border-radius: 8px;
		transition: all 0.3s ease;
	}
	.nav-toggle:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}
	.nav-toggle.active i {
		color: var(--dark-color);
	}

	.nav-links {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		padding: 80px 20px 40px;
		transform: translateX(-100%);
		opacity: 0;
		transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
		z-index: 999;
		overflow-y: auto;
		box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
	}

	.nav-links.active {
		transform: translateX(0);
		opacity: 1;
	}

	.nav-links li {
		margin: 0;
		width: 100%;
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}

	.nav-links li:last-child {
		border-bottom: none;
	}

	.nav-links a {
		font-size: 1.1rem;
		color: var(--dark-color);
		display: block;
		padding: 10px 20px;
		text-align: center;
		transition: all 0.3s ease;
		border-radius: 8px;
		/* margin: 4px 0; */
	}

	.nav-links a:hover,
	.nav-links a.active {
		background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
		color: white;
		transform: scale(1.02);
		box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
	}

	.nav-links a::after {
		display: none;
	}

}



/* 页脚 */

footer {
	background-color: var(--dark-color);
	color: white;
	padding: 70px 0 30px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 40px;
	margin-bottom: 40px;
}
.footer-about {
	grid-column: span 2;
}

.footer-about p {
	margin-bottom: 20px;
	opacity: 0.8;
}

.footer-logo {
	font-size: 1.8rem;
	font-weight: 700;
	color: white;
	margin-bottom: 20px;
	display: inline-block;
}

.social-icons a {
	padding: 0 10px;
	font-size: 1.3rem;
	transition: 300ms;
	float: left;
	opacity: 0.8;
}
.social-icons a:first-child{
	padding-left: 0;
}
.footer-links {
	grid-column: span 1;
}
.footer-links h3, .footer-contact h3 {
	font-size: 1.3rem;
	margin-bottom: 25px;
	position: relative;
	padding-bottom: 10px;
	color: var(--light-gray);
}
.social-icons a:hover {
	color: var(--primary-color);
	opacity: 1;
}

.footer-links h3::after, .footer-contact h3::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 3px;
	background-color: var(--primary-color);
}

.footer-links ul li {
	line-height: 28px;
	margin-bottom: 12px;
}

.footer-links a {
	opacity: 0.8;
	transition: var(--transition);
}

.footer-links a:hover {
	opacity: 1;
	color: var(--primary-color);
	padding-left: 5px;
}

.footer-contact {
	grid-column: span 2;
}
.footer-contact ul li {
	line-height: 28px;
	display: flex;
	align-items: center;
	margin-bottom: 12px;
	
}
.footer-contact ul li span{
	opacity: 0.8;
}
.footer-contact ul li i {
	margin-right: 6px;
	color: var(--primary-color);
}

.copyright {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	opacity: 0.7;
	font-size: 0.9rem;
}



/* 响应式设计 */
@media (max-width: 992px) {
	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	
/* 	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	} */
}





/* 悬浮窗 */
/* 右下角悬浮按钮 */













/* iyasocare.cc */

/* <<  右下角悬浮联系开始 */
.right-bottom-contact {
	z-index: 998;
	position: fixed;
	bottom: 30px;
	right: 20px;
	height: 140px;
	width: 70px;
}

.right-bottom-contact:hover {
	height: 210px;
	width: 140px;
}

.right-bottom-contact .zf-rb-but {
	display: flex;
	height: 50px;
	width: 50px;
	border-radius: 50%;
	background-color: var(--primary-color);
	justify-content: center;
	align-items: center;
	position: absolute;
	bottom: 80px;
	right: 10px;
	transition: 300ms;
	box-sizing: border-box;
	border: 1px solid var(--primary-color);
	box-shadow: 0 0 3px 0 var(--primary-color);
}
.right-bottom-contact .zf-rb-but {
	opacity: 0;
}
.right-bottom-contact .zf-rb-but.zf-rb0{
	opacity: 1;
}
.right-bottom-contact:hover .zf-rb-but {
	opacity: 1;
}
.right-bottom-contact:hover .zf-rb-but i{
	transform: rotate(360deg);
}
.right-bottom-contact:hover .zf-rb0{
	background-color: #fff;
	color: var(--primary-color);
	scale: 1.2;
}
.right-bottom-contact i{
	font-size: 24px;
	color: #fff;
	transition: 300ms;
}
.right-bottom-contact .zf-rb-but:hover i{
	font-size: 28px;
	color: var(--primary-dark);
	transform: rotate(720deg);
}
.right-bottom-contact .zf-rb-but:hover{
	background-color: #fff;
} 

.right-bottom-contact .zf-rb-but .zf-rb-in {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 40px 0 5px;
	position: absolute;
	top: -1px;
	right: -1px;
	background-color: transparent;
	border: 1px solid var(--primary-color);
	opacity: 0;
	height: 50px;
	width: 50px;
	border-radius: 50px;
	color: var(--primary-dark);
	transition: all 300ms;
	transition-delay: 100ms;
	overflow: hidden;
}
.right-bottom-contact .zf-rb-but .zf-rb-in a {
	white-space: nowrap;
	font-size: 14px;
}
.right-bottom-contact .zf-rb-but:hover .zf-rb-in {
	opacity: 1;
	width: 280px;
	background-color: #fff;
}

/* 主开关 */
.right-bottom-contact:hover .zf-rb0 {
	bottom: 80px;
	right: 10px;
	
}
/* 子按钮 */
.right-bottom-contact:hover .zf-rb1 {
	bottom: 150px;
	right: 10px;
}
.right-bottom-contact:hover .zf-rb2 {
	bottom: 132px;
	right: 62px;
}
.right-bottom-contact:hover .zf-rb3 {
	bottom: 80px;
	right: 80px;
}
.right-bottom-contact:hover .zf-rb4 {
	bottom: 28px;
	right: 62px;
}

.right-bottom-contact .zf-rb4 i {
	font-size: 24px;
}
.right-bottom-contact .zf-rb4:hover i {
	font-size: 28px;
}
/* 微信二维码 */
.right-bottom-contact .zf-rb1 .zf-rb-wechat{
	position: absolute;
	bottom: 50px;
	right: -10px;
	height: 0;
	width: 0;
	overflow: hidden;
}
.right-bottom-contact .zf-rb1:hover .zf-rb-wechat{
	width: 200px; 
	height: 235px;
	border-radius: 5px;
}

.right-bottom-contact .zf-rb1 .zf-we-img{
	opacity: 0;
	position: absolute;
	width: 200px;
	border-radius: 5px;
	top: 10px;
	right: -100%;
	background-color: var(--primary-color);
	padding: 10px 10px 10px 10px;
	transition: 300ms;
}
.right-bottom-contact .zf-rb1:hover .zf-we-img{
	opacity: 1;
	right: 0;
	text-align: center;
}
.right-bottom-contact .zf-rb1 .zf-we-img img {
	display: block;
	width: 180px;
	object-fit: cover;
}
.right-bottom-contact .zf-rb1 .zf-we-img a{
	text-align: center;
	line-height: 24px;
	color: #eee;
	padding: 0;
	margin: 0;
	border-bottom: 1px solid #eee;
}
/* 右下角悬浮联系结束 >> */




/* << 右下角悬浮留言按钮和返回顶部按钮开始 */
.right-bottom-msg {
	z-index: 999;
	position: fixed;
	bottom: 0;
	right: 30px;
}
.right-bottom-msg .zf-msg-btn {
	position: absolute;
	bottom: 40px;
	right: 0;
	display: flex;
	height: 50px;
	width: 50px;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	font-size: 24px;
	background-color: var(--primary-color);
	color: #fff;
	cursor: pointer;
	border: 1px solid var(--primary-color);
	transition: 300ms;
}
.right-bottom-msg .zf-msg-btn:hover{
	background-color: #fff;
	color: var(--primary-dark);
	scale: 1.2;
}

/* 返回顶部按钮样式 */
.right-bottom-msg .zf-to-up {
	position: absolute;
	bottom: 0;
	right: 0;
	display: flex;
	height: 50px;
	width: 50px;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	font-size: 24px;
	background-color: var(--primary-color);
	color: #fff;
	cursor: pointer;
	border: 1px solid var(--primary-color);
	transition: 300ms;
	opacity: 0;
	visibility: hidden;
	transform: translate(0, 50%);
}

.right-bottom-msg .zf-to-up::before {
	content: "↑";
	font-size: 20px;
	font-weight: bold;
	font-style: normal;
}

.right-bottom-msg .zf-to-up:hover {
	background-color: #fff;
	color: var(--primary-dark);
	scale: 1.2;
}

/* 右下角悬浮留言按钮和返回顶部按钮开始 >> */



/* 添加子菜单 */
/* 基础样式 - 确保导航容器为相对定位 */
.product-menu-box {
  position: relative;
}

/* 子菜单容器 - 默认隐藏 */
.product-menu {
  position: absolute;
   /* 在父菜单下方 */ 
  top: 200%;
  left: 50%;
  min-width: 180px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: all 0.3s ease;
  z-index: 1009;
  padding: 0;
  list-style: none;
  margin: 0;
}

/* 子菜单项样式 */
.product-menu li {
  display: block;
  padding: 0;
  margin: 0;
}

.product-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap; /* 防止文字换行 */
}

.product-menu a:hover {
  background-color: var(--light-gray);
}

.zf-xuanzhuan-90-r {
	transform: rotate(90deg);
}
.zf-xuanzhuan-90-l {
	transform: rotate(-90deg);
}

/* 悬停显示效果 */
.product-menu-box:hover .product-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 移动端适配 - 确保在移动设备上子菜单也能正常显示 */
@media (max-width: 768px) {
	header.transparent {
		background-color: transparent;
		padding: 8px 0;
	}
	.product-menu-box {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		width: 100%;
	}
	.product-menu-box > a {
		width: 100%;
	}
	.product-menu {
		top: 0;
		width: 100%;
		position: relative;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding: 0;
		left: 0;
		background: rgba(0, 123, 255, 0.05);
		/* border-radius: 8px; */
		/* margin: 8px 0; */
	}
	.product-menu a {
		padding: 8px 20px;
		text-align: center;
		font-size: 1rem;
		color: var(--dark-color);
		transition: all 0.3s ease;
	}
	.product-menu li {
		border-top: 1px solid rgba(0, 0, 0, 0.05);
	}
	/* .product-menu li:last-child {
		border-bottom: none;
	} */
	.product-menu li a::before{
		content: "›";
		display: inline-block;
		position: relative;
		margin-right: 8px;
		color: var(--primary-color);
		font-weight: bold;
		font-size: 1.2rem;
	}

	.product-menu a:hover {
		background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
		color: white;
		transform: scale(1.02);
		box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
	}

	.product-menu-box:hover .product-menu {
		opacity: 1;
		transform: none;
	}

}

/* 防止父菜单和子菜单之间的间隙导致闪烁 */
.product-menu-box:hover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100px;
  background: transparent;
}



/* 为产品中心链接添加悬态样式 */
.product-menu-box > a:hover {
  color: #007bff;
}

/* 模态框动画 */
@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes modalFadeOut {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(0.9);
	}
}