/* ==========================================================================
   1. 轮播横幅 (Hero Banner)
   ========================================================================== */
.royal-banner {
	background: #1a1a1a;
	height: 100vh; 
	position: relative;
	overflow: hidden;
	width: 100%;
}

.royal-banner-swiper {
	width: 100%;
	height: 100%;
}

.royal-banner-item {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position:  center;
	background-repeat: no-repeat;
	overflow: hidden;
}

/* 背景缩放动画 — 缩小inset减少裁切 */
/* .royal-banner-item::before {
	content: '';
	position: absolute;
	inset: -4%;
	background-image: inherit;
	background-size: cover;
	background-position: right center;
	animation: imageZoom 10s infinite ease-in-out;
	z-index: 1;
} */

.royal-banner-info {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 440px;
	margin: auto 0;
}

.royal-banner-info h1 {
	font-size: 52px;
	line-height: 1.15;
}

.royal-banner-info h2 {
	font-size: 16px;
	margin-bottom: 16px;
	text-transform: uppercase;
	text-indent: 0.2em;
}

.royal-banner-info p {
	font-size: 17px;
	margin: 16px 0 32px;
	text-indent: 0.2em;
}

/* ==========================================================================
   2. 视频+品牌合并区 — 同背景色无缝衔接，底部右斜切
   ========================================================================== */
.royal-ivideo-g {
	overflow: hidden;
	padding: 80px 0 40px;
	position: relative;
	background: #f8f4ea;
}
/* 去掉原来的 ::after 波浪 */
.royal-ivideo-g::after { display: none; }

/* 视频容器 - 保持原始显示器外观 */
.royal-ivideo-content {
	position: relative; 
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	margin: 0 auto;
	width: 100%;
	max-width: 1000px;
	aspect-ratio: 1000 / 600;
	height: auto;
}

/* 屏幕区域 */
.royal-screen-content {
	position: absolute;
	top: 5%;
	left: 11.9%;
	right: 11.9%;
	bottom: 14%;
	background-color: #000;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.royal-ivideo-poster {
	width: 100%;
	height: 100%;
	position: relative;
}

.royal-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 播放按钮 */
.royal-ivideo-poster-btn {
	position: absolute;
	top: 10%;
	right: 0%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s;
	border: 2px solid #FFD100;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
	z-index: 5;
}

.royal-ivideo-poster-btn i {
	font-size: 18px;
	color: #333;
}

.royal-ivideo-poster-btn:hover {
	transform: translate(-50%, -50%) scale(1.1);
	background: #FFD100;
	color: #fff;
}

/* 视频弹窗 — z-index 确保不被 clip-path 挡住 */
.royal-ivideo-modal.royal-modal {
	z-index: 99999;
}
.royal-ivideo-modal .royal-modal-dialog {
	min-width: 60%;
	border-radius: 0;
	box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.royal-ivideo-modal .royal-modal-hd,
.royal-ivideo-modal .royal-modal-bd {
	padding: 0;
}

.royal-ivideo-modal .royal-close {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(0,0,0,.55);
	color: #fff;
	z-index: 10;
	opacity: 1;
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 300;
	transition: all 0.3s ease;
}

.royal-ivideo-modal .royal-close:hover {
	opacity: 1;
	transform: scale(1.15) rotate(90deg);
	background-color: #FFD100;
}

/* 视频播放容器 */
.royal-video-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	background: #000;
	overflow: hidden;
	border-radius: 0;
}

.royal-video-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

/* ==========================================================================
   3. 品牌展示区 — 与视频同背景合并，仅底部右斜切
   ========================================================================== */
.royal-ibrand-class-g {
	overflow: hidden;
	padding: 20px 0 120px;
	background: #f8f4ea;
	position: relative;
	/* 底部右斜：右边高5vw */
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.royal-ibrand-class-item {
	overflow: hidden;
	text-align: center;
	background: #fff;
	border-radius: 0;
	padding: 14px 10px;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.royal-ibrand-class-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 3px 10px rgba(0,0,0,.05);
}

.royal-ibrand-class li {
	padding: 16px;
}

.royal-ibrand-class-img {
	padding-bottom: 45%;
	overflow: hidden;
}

/* ==========================================================================
   4. 产品分类区 — clip-path 斜切
   ========================================================================== */
.royal-product-class-g {
	overflow: hidden;
	padding: calc(5vw + 60px) 0 120px;
	/* margin-bottom handled by padding */
	position: relative;
	background: #fff;
	/* 顶右斜(右高)匹配品牌底 + 底左斜(左高)交替 */
	clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 calc(100% - 5vw));
}

.royal-product-class {
	overflow: hidden;
}

.royal-product-class li {
	padding: 12px;
}

.royal-product-class-item {
	overflow: hidden;
	text-align: center;
	padding: 32px 24px 28px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
	background: #fff;
	border-radius: 0;
	border: 1px solid rgba(0,0,0,.04);
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.royal-product-class-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 14px rgba(0,0,0,.06);
	border-color: #FFD100;
}

.royal-product-class-img {
	padding-bottom: 100%;
	border-radius: 0;
}

.royal-product-class-info a {
	font-weight: 600;
	margin-top: 24px;
	display: block;
	line-height: 1.2;
	font-size: 18px;
	color: #1a1a1a;
}
.royal-product-class-item:hover .royal-product-class-info a { color: #b8941a; }

/* ==========================================================================
   5. 专题产品区 — clip-path 斜切
   ========================================================================== */
.royal-featured-products-g {
	overflow: hidden;
	padding: calc(5vw + 60px) 0 120px;
	/* margin-bottom handled by padding */
	position: relative;
	background: #FFFBF0;
	/* 顶左斜(左高)匹配产品底 + 底右斜(右高)交替 */
	clip-path: polygon(0 0, 100% 5vw, 100% calc(100% - 5vw), 0 100%);
}

.royal-featured-products {
	overflow: hidden;
}

.royal-featured-products li {
	padding: 16px;
}

.royal-featured-products-item {
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
	border: 1px solid rgba(0,0,0,.04);
	background: #fff;
	border-radius: 0;
	position: relative;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.royal-featured-products-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 18px rgba(0,0,0,.07);
}

/* hover 时展开信息层 */
.royal-featured-products-item:hover .royal-featured-products-info {
	opacity: 1;
	display: block;
	transform: translateY(0);
	background-color: #FFD100;
	
}
.royal-featured-products-item:hover .royal-featured-products-info a{
	color: #fff!important;
	
}
 
.royal-featured-products-img {
	padding-bottom: 75%;
}

.royal-featured-products-img img {
	object-fit: cover;
	object-position: center;
}

.royal-featured-products-info {
	font-size: 20px;
	overflow: hidden;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 20px 30px;
	font-weight: bold; 
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: all 0.4s ease; 
	display: block;
	opacity: 0;
	transform: translateY(100%);
	z-index: 2;
	text-align: center;
}
.royal-featured-products-info a { font-size: 18px; } 
/* ==========================================================================
   6. 电商平台区 — 顶部斜切，底部平接Footer
   ========================================================================== */
.royal-ishop-g {
	overflow: hidden;
	padding: calc(5vw + 40px) 0 80px;
	position: relative;
	background: #fff;
	/* 顶右斜(右高)匹配Featured底 + 平底接Footer */
	clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
}

.royal-ishop {
	overflow: hidden;
}

.royal-ishop li {
	padding: 16px;
}

.royal-ishop-item {
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
	border: 1px solid rgba(0,0,0,.04);
	background: #fff;
	border-radius: 0;
	position: relative;
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.royal-ishop-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 18px rgba(0,0,0,.07);
	border-color: #FFD100;
}

.royal-ishop-img {
	padding-bottom: 60%;
	
}

.royal-ishop-img img {
	object-fit: contain;
	object-position: center; 
	transition: transform 0.5s ease;
	padding: 20px;
}

.royal-ishop-img img:hover {
	transform: scale(1.08);
}

/* ==========================================================================
   7. 响应式设计与移动端优化 (Responsive & Mobile)
   ========================================================================== */

/* 平板端与中等屏幕 (最大宽度 992px) */
@media (max-width: 992px) {
	.royal-banner {
		margin-top: 51px;
		height: 50vh;
		min-height: 380px;
		max-height: 550px;
	}

 

	.royal-banner-info {
		text-align: left;
		max-width: 60%;
		margin: auto 0;
	}

	/* 隐藏轮播导航按钮 */
	.swiper-button-next,
	.swiper-button-prev {
		display: none;
	}

	.royal-ivideo-g { padding: 60px 0 40px; }
	.royal-ivideo-g::after { display: none; }
	.royal-ibrand-class-g { padding: 20px 0 calc(3vw + 40px); }
	.royal-product-class-g { padding: calc(3vw + 30px) 0 calc(3vw + 40px); }
	.royal-featured-products-g { padding: calc(3vw + 30px) 0 calc(3vw + 40px); }
	.royal-ishop-g { padding: calc(3vw + 20px) 0 40px; }

	/* 移动端字体/间距调整 */
	.royal-banner-info h1 {
		font-size: 34px;
	}

	.royal-banner-info h2 {
		margin-bottom: 10px;
		font-size: 14px;
	}

	.royal-banner-info p {
		font-size: 15px;
		margin: 14px 0 24px;
	}

	.royal-banner-info .royal-btn {
		font-size: 14px;
	}

	.royal-ibrand-class li {
		padding: 8px;
	}

	.royal-product-class li {
		padding: 8px;
	}

	.royal-product-class-item {
		padding: 20px 14px;
	}

	.royal-product-class-info a {
		margin-top: 14px;
		font-size: 15px;
	}

	.royal-featured-products li {
		padding: 10px;
	}

	.royal-featured-products-info {
		
		padding:0;
		opacity: 1;
		transform: translateY(0); 
	}
	.royal-featured-products-info a{
		
		font-size: 12px;
	}

	.royal-ishop-g {
		padding: 10px 0 40px;
	}

	.royal-ishop li {
		padding: 8px;
	}
	.royal-ishop-img img { 
	padding: 0px;
}
}

/* 手机端 (最大宽度 768px) */
@media (max-width: 768px) {
	.royal-banner {
		height: auto;
		min-height: 340px;
		max-height: 500px;
		aspect-ratio: 4 / 3;
	}

	.royal-banner-info { max-width: 55%; margin: auto 0; }
	.royal-banner-info h1 { font-size: 22px; }
	.royal-banner-info p { font-size: 13px; }
	.royal-banner-info .royal-btn { font-size: 13px; padding: 10px 22px; }

	.royal-ivideo-g { padding: 40px 0 50px; }
	.royal-ivideo-poster-btn { width: 40px; height: 40px; }

	.royal-ibrand-class li { padding: 6px; }
	.royal-ibrand-class-item { border-radius: 0; padding: 8px 4px; }

	.royal-product-class li { padding: 6px; }
	.royal-product-class-item { padding: 16px 10px; border-radius: 0; }

	.royal-featured-products li { padding: 8px; }
	.royal-featured-products-item { border-radius: 0; }

	.royal-ishop li { padding: 6px; }
}

/* 大屏幕保持比例 (最小宽度 1000px) */
@media (min-width: 1000px) {
	.royal-ivideo-content {
		max-width: 1000px;
	}
}
