/* =====================================
   公共样式 - Common Styles
   包含：头部导航、Logo、导航菜单、下拉Mega Menu、
         页脚、版权信息、返回顶部、移动端响应式
   ===================================== */

/* ===== 头部导航栏 ===== */
.royal-head {
	padding: 15px 0;
	transition: 0.5s ease;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	/* background: rgba(255, 255, 255, 0.95);
	box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.02); */
}

/* 波浪装饰底边（已注释，备用）
.royal-head::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 200%;
	height: 15px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath fill='%2373D7DC' fill-opacity='0.3' d='M0,5 Q5,0 10,5 T20,5 T30,5 T40,5 L40,10 L0,10 Z'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	opacity: 0.8;
	animation: waveMove 200s linear infinite;
	pointer-events: none;
	background-size: 60px 15px;
} */

/* ===== 滚动后头部压缩效果 ===== */
.royal-head-min {
	transition: 0.5s ease;
	box-shadow: 4px 10px 10px rgba(0, 0, 0, 0.02);
	padding: 10px 0;
	background: #fff;
}

/* 压缩态 Logo 缩小 */
.royal-head-min .royal-logo {
	height: 40px;
	line-height: 40px;
	padding-top: 0;
}

.royal-head-min .royal-logo img {
	height: 40px;
}

.royal-head-min .royal-navmenu-content {
	padding: 0;
}

/* ===== Logo 样式 ===== */
.royal-logo {
	overflow: hidden;
	transition: 0.5s ease;
	padding-top: 5px;
}

.royal-logo a {
	overflow: hidden;
	position: relative;
	display: inline-block;
}

/* Logo扫光效果 */
.royal-logo a:before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transform: skewX(-25deg);
	z-index: 2;
	animation: logoShine 3s infinite;
}

.royal-logo img {
	height: 50px;
	transition: 0.5s ease;
	vertical-align: middle;
}

/* ===== 桌面端导航菜单 ===== */
.royal-navmenu {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-pack: distribute;
	justify-content: space-around;
}

.royal-navmenu-content {
	margin: 0;
	padding: 10px 0;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.royal-navmenu-item {
	position: relative;
	display: inline-block;
	color: #333;
}

.royal-navmenu-item-link {
	display: block;
	line-height: 40px;
	padding: 0 20px;
	font-size: 16px;
	border-radius: 5px;
	color: inherit;
	font-weight: bold;
}

/* 当前激活的下级菜单项 */
.royal-navmenu-dropdown-link.active {
	color: #73D7DC;
	font-weight: bold;
}

/* 悬停与激活态 */
.royal-navmenu-item-link:hover,
.royal-navmenu-item.active .royal-navmenu-item-link {
	background-color: #73D7DC;
	color: #fff;
}

.royal-navmenu-item:hover .royal-icon,
.royal-navmenu-item.active .royal-icon {
	color: #fff;
}

/* 导航图标（下拉箭头）*/
.royal-navmenu-item .royal-icon {
	position: absolute;
	right: 5px;
	top: 0;
	height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	transition: 0.5s ease;
}

/* ===== 桌面端全宽 Mega Menu 下拉面板 ===== */
.royal-navmenu-dropdown {
	position: absolute;
	left: 0;
	background: #47B5BA;
	border-radius: 5px;
	box-shadow: 4px 10px 20px rgba(0, 0, 0, 0.05);
	opacity: 0;
	visibility: hidden;
	-webkit-transform: translateY(20px);
	transform: translateY(20px);
	transition: 0.5s ease;
	z-index: 1000;
	padding: 0 20px;
	list-style: none;
	min-width: 100%;
	margin: 0;
	top: 120%;
}

/* 桌面端全宽 Mega Menu（>=993px 时展开为固定顶部全宽面板）*/
@media (min-width: 993px) {
	.royal-navmenu-dropdown {
		position: fixed;
		left: 0;
		right: 0;
		width: 100%;
		top: 0;
		background: #47B5BA;
		box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
		padding: 16px 0 14px;
		min-width: 0;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 3px 18px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		z-index: 999;
	}

	/* 顶部金黄装饰线 */
	.royal-navmenu-dropdown::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 2px;
		background: #F2DD62;
		transform: scaleX(0);
		transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	}

	.royal-navmenu-dropdown-active::after {
		transform: scaleX(1);
	}

	/* 激活态：显示下拉面板 */
	.royal-navmenu-dropdown-active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	/* 子栏目并排居中，逐项渐入动画 */
	.royal-navmenu-dropdown li {
		flex: 0 0 auto;
		text-align: center;
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 0.35s ease, transform 0.35s ease;
	}

	.royal-navmenu-dropdown-active li {
		opacity: 1;
		transform: translateY(0);
	}

	/* 错峰延迟 - 每项依次出现 */
	.royal-navmenu-dropdown-active li:nth-child(1) { transition-delay: 0.04s; }
	.royal-navmenu-dropdown-active li:nth-child(2) { transition-delay: 0.08s; }
	.royal-navmenu-dropdown-active li:nth-child(3) { transition-delay: 0.12s; }
	.royal-navmenu-dropdown-active li:nth-child(4) { transition-delay: 0.16s; }
	.royal-navmenu-dropdown-active li:nth-child(5) { transition-delay: 0.20s; }
	.royal-navmenu-dropdown-active li:nth-child(6) { transition-delay: 0.24s; }
	.royal-navmenu-dropdown-active li:nth-child(7) { transition-delay: 0.28s; }
	.royal-navmenu-dropdown-active li:nth-child(8) { transition-delay: 0.32s; }

	/* 下拉链接样式 */
	.royal-navmenu-dropdown-link {
		display: inline-block;
		white-space: nowrap;
		font-size: 14px;
		font-weight: 500;
		line-height: 1;
		padding: 8px 18px;
		border: none;
		border-radius: 30px;
		color: rgba(255,255,255,0.85);
		text-decoration: none;
		transition: all 0.3s ease;
		background: transparent;
	}

	.royal-navmenu-dropdown-link:hover {
		background: rgba(255,255,255,0.2);
		color: #fff;
		transform: translateY(-2px);
		box-shadow: 0 3px 8px rgba(0,0,0,0.12);
	}

	/* 隐藏桌面端小三角 */
	.royal-navmenu-dropdown::before {
		display: none;
	}
}

/* 语言切换激活态 */
.royal-set-lang-active {
	color: #73D7DC;
	font-weight: bold;
}

/* ===== 移动端汉堡菜单按钮（桌面端隐藏）===== */
.royal-navmenu-toggle {
	display: none;
}

/* ===== 搜索栏 ===== */
.royal-search {
	padding: 12px 0;
}

.royal-search input {
	margin-right: 5px;
}

/* =====================================
   页脚样式
   ===================================== */

/* ===== 页脚主体 - 含波浪装饰 ===== */
.royal-foot {
	padding: 160px 0 0;
	position: relative;
	overflow: hidden;
}

/* 顶部波浪装饰 */
.royal-foot::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	height: 160px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23B4E1DC' d='M0,50 Q50,0 100,50 T200,50 T300,50 T400,50 L400,100 L0,100 Z' /%3E%3C/svg%3E");
	background-size: 100% 100%;
	background-repeat: repeat-x;
	animation: waveMove 40s linear infinite;
	pointer-events: none;
	z-index: 999;
}

/* 页脚内容区 - 渐变背景 */
.royal-foot-content {
	background: #B4E1DC;
	/* 回退颜色 */
	background: -webkit-linear-gradient(top, #B4E1DC 0%, #73D7DC 100%);
	background: -moz-linear-gradient(top, #B4E1DC 0%, #73D7DC 100%);
	background: -o-linear-gradient(top, #B4E1DC 0%, #73D7DC 100%);
	background: linear-gradient(180deg, #B4E1DC 0%, #73D7DC 100%);
	padding: 40px 0 0;
	overflow: hidden;
}

/* ===== 页脚 Logo ===== */
.royal-foot-logo img {
	max-height: 50px;
	margin-bottom: 10px;
}

/* ===== 页脚导航列表 ===== */
.royal-footnav-list {
	overflow: hidden;
	padding: 0 40px;
}

.royal-footnav-list a {
	font-size: 20px;
	font-weight: 600;
}

.royal-footnav-sub li {
	padding: 5px 0;
}

.royal-footnav-sub a {
	font-size: 14px;
	font-weight: normal;
}

/* ===== 页脚联系信息 ===== */
.royal-foot-contact-info li {
	padding: .50px 0;
}

.royal-foot-contact-item i {
	margin-right: 5px;
}

.royal-foot-contact-title {
	font-weight: bold;
	text-transform: uppercase;
	font-size: 20px;
}

/* ===== 页脚社交媒体图标 ===== */
.royal-foot-contact-icons {
	overflow: hidden;
	padding: 20px 0 0;
}

.royal-foot-contact-icons li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #333;
	border-radius: 50%;
	font-size: 16px;
	color: #fff;
}

/* 鼠标悬停效果 */
.royal-foot-contact-icons li a:hover {
	background: #73D7DC;
	color: white;
	transform: translateY(-2px);
}

/* ===== 版权信息 ===== */
.royal-copyright {
	overflow: hidden;
	padding: 15px 0;
	margin-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.royal-copyright a {
	display: inline-block;
	padding: 0 5px;
}

.royal-copyright a:hover {
	color: #ead03d;
}

.royal-copyright-list {
	text-align: right;
	overflow: hidden;
}

/* ===== 返回顶部按钮 ===== */
.royal-gotop {
	border-radius: 100%;
	bottom: 40px;
	right: 20px;
	background: #73D7DC;
	width: 48px;
	height: 48px;
	transition: all ease .5s;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.royal-gotop a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	color: #fff;
}

.royal-gotop:hover {
	background: #73D7DC;
	transform: translateY(-5px);
	transition: all ease .5s;
}

/* =====================================
   移动端响应式样式（<=992px）
   包含：容器适配、导航变侧滑菜单、汉堡按钮、
         下拉展开、遮罩层、页脚适配
   ===================================== */
@media (max-width: 992px) {
	/* ===== 容器适配 ===== */
	.royal-container {
		padding: 0 15px;
	}

	.royal-container-avg {
		padding: 0 10px;
	}

	.royal-container-avg-lg {
		padding: 0 10px;
	}

	/* ===== 头部适配 ===== */
	.royal-head {
		padding: 10px 0;
		background: #fff;
		box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.05);
	}

	.royal-head-min .royal-logo {
		height: 30px;
		line-height: 30px;
	}

	.royal-logo {
		padding: 0;
		height: 30px;
	}

	.royal-head-min .royal-logo img,
	.royal-logo img {
		height: 30px;
	}

	/* ===== 搜索栏适配 ===== */
	.royal-search {
		overflow: hidden;
		padding: 0;
		margin-top: 20px;
		position: relative;
	}

	.royal-search button {
		position: absolute;
		right: 0;
		top: 0;
	}

	/* ===== 汉堡菜单按钮 ===== */
	.royal-navmenu-toggle {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		position: absolute;
		top: 7px;
		right: 15px;
		width: 40px;
		height: 36px;
		background: #73D7DC;
		padding: 10px;
		border-radius: 5px;
		cursor: pointer;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		-ms-flex-pack: justify;
		justify-content: space-between;
		z-index: 1003;
		border: 1px solid #73D7DC;
	}

	.royal-navmenu-toggle span {
		display: block;
		width: 100%;
		height: 2px;
		background: #fff;
		transition: 0.5s;
	}

	/* 激活态：三道杠变身叉号（X）*/
	.royal-navmenu-toggle-active span:nth-child(1) {
		-webkit-transform: translateY(7px) rotate(45deg);
		transform: translateY(7px) rotate(45deg);
	}

	.royal-navmenu-toggle-active span:nth-child(2) {
		opacity: 0;
	}

	.royal-navmenu-toggle-active span:nth-child(3) {
		-webkit-transform: translateY(-5px) rotate(-45deg);
		transform: translateY(-5px) rotate(-45deg);
	}

	/* ===== 移动端侧滑菜单 ===== */
	.royal-navmenu {
		-webkit-overflow-scrolling: touch;
		display: block;
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100%;
		background: #fff;
		transition: right 0.5s ease;
		z-index: 1002;
		overflow-y: auto;
		padding: 50px 20px;
	}

	/* 菜单滑入 */
	.royal-navmenu-active {
		right: 0;
		box-shadow: 4px 10px 20px rgba(0, 0, 0, 0.2);
	}

	/* 菜单项纵向排列 */
	.royal-navmenu-content {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
	}

	.royal-navmenu-item {
		width: 100%;
		padding: 0;
		border-bottom: 1px solid #e6e6e6;
	}

	.royal-navmenu-item-link {
		line-height: 50px;
		padding: 0;
		display: inline-block;
	}

	/* 移动端悬停不换背景色 */
	.royal-navmenu-item-link:hover,
	.royal-navmenu-item.active .royal-navmenu-item-link {
		background: none;
		color: #73D7DC;
	}

	.royal-navmenu-item .royal-icon {
		height: 50px;
		color: #333;
		width: 32px;
	}

	.royal-navmenu-item:hover .royal-icon,
	.royal-navmenu-item.active .royal-icon {
		color: #73D7DC;
	}

	/* ===== 下拉菜单在移动端改为块级展开/收起（白色背景，max-height 过渡）===== */
	.royal-navmenu-dropdown {
		position: static;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		/* 重置桌面端隐藏属性 */
		opacity: 1;
		visibility: visible;
		transform: none;
		/* max-height 过渡动画 */
		transition: max-height 0.35s ease;
		/* 移动端白色背景 */
		background: #fff;
		box-shadow: none;
		border-radius: 0;
		padding: 0 10px;
	}
	.royal-navmenu-dropdown a{
		display: block;
		padding: 5px 0;
		border-bottom: 1px solid #f3f3f3;
	}
	.royal-navmenu-dropdown li:last-child a{
		border: none;
	}

	.royal-navmenu-dropdown-active {
		max-height: 2000px;
		overflow: visible;
	}

	/* ===== 菜单打开时锁定页面滚动 ===== */
	body.royal-menu-open {
		overflow: hidden;
		position: relative;
		width: auto;
		height: auto;
	}

	/* ===== 遮罩层 ===== */
	.royal-menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 1000;
		opacity: 0;
		visibility: hidden;
		transition: 0.5s ease;
	}

	body.royal-menu-open .royal-menu-overlay {
		opacity: 1;
		visibility: visible;
	}

	/* ===== 页脚适配 ===== */
	.royal-foot {
		padding: 80px 0 0;
	}

	.royal-foot::after {
		width: 300%;
		height: 80px;
	}

	.royal-foot-logo {
		text-align: center;
	}

	.royal-foot-contact-icons {
		max-width: 60%;
		text-align: center;
		margin: 0 auto;
	}

	.royal-footnav-list {
		padding: 20px 0;
	}

	.royal-footnav-list a,
	.royal-foot-contact-title {
		font-size: 16px;
	}

	.royal-footnav-sub a {
		font-size: 14px;
	}

	/* ===== 版权信息适配 ===== */
	.royal-copyright {
		padding: 10px 0;
		margin-top: 10px;
	}

	.royal-copyright-list {
		text-align: left;
	}
}
