/* ==========================================================================
   1. 内页横幅 - 产品列表 (Inner Banner - Product)
   ========================================================================== */
.royal-product-banner {
	height: 640px;
}

.royal-product-banner .royal-inner-banner-bg {
	background-position: center;
}

.royal-product-banner .royal-inner-banner-content {
	justify-content: start;
}

.royal-product-banner .royal-inner-banner-info {
	color: #00705A;
	text-align: left;
}

/* ==========================================================================
   2. 内页横幅 - Mint 产品 (Inner Banner - Mint)
   ========================================================================== */
.royal-product-mint-banner {
	height: 100vh;
}

.royal-product-mint-banner .royal-inner-banner-bg {
	background-position: center bottom;
	animation: none;
}

/* ==========================================================================
   3. Popular Products 弹出信息区 (Popular Products Popup)
   ========================================================================== */
.royal-popular-products {
	overflow: visible;
	padding: 80px 0 60px;
	margin-bottom: 60px;
	background: linear-gradient(150deg, #ffffff 0%, #73d7dc38 100%);
}

.royal-popular-products .royal-container-avg-lg {
	position: relative;
	overflow: visible;
}

.royal-popular-products ul {
	position: relative;
	overflow: visible;
	display: flex;
	flex-wrap: wrap;
}

.royal-popular-products li {
	padding: 20px;
	list-style: none;
	overflow: visible;
}

/* 弹窗本体（正常流，挤走下方内容） */
.royal-popular-products-alert {
	display: none;
	position: relative;
	box-sizing: border-box;
	padding: 40px;
	background-color: #C5E4DE;
	border-radius: 20px;
	color: #00705A;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
	margin-top: 20px;
	margin-bottom: 20px;
	width: 100%;
}

.royal-popular-products-alert.show {
	display: block;
}

/* 小三角（bottom:100% 确保在 padding 之上） */
.royal-popular-products-alert::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: var(--arrow-left, 50%);
	transform: translateX(-50%);
	border-width: 16px;
	border-style: solid;
	border-color: transparent transparent #C5E4DE transparent;
	z-index: 10;
}

/* 弹窗内容布局 */
.royal-popular-products-info {
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.royal-popular-products-info-txt {
	flex: 1;
	min-width: 0;
}

.royal-popular-products-info-img {
	flex: 0 0 280px;
	max-width: 50%;
}

.royal-popular-products-info h1 {
	font-size: 24px;
	margin-bottom: 10px;
}

.royal-popular-products-info h3 {
	font-size: 18px;
	margin: 10px 0;
	color: #00705A;
}

.royal-popular-products-info-desc {
	line-height: 1.6;
	font-size: 16px;
	margin-bottom: 20px;
}

.royal-popular-products-info-btn {
	padding-top: 20px;
}

.royal-popular-products-info-btn .royal-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #00705A;
	color: #fff;
	border-radius: 30px;
	text-decoration: none;
}

.royal-popular-products-img {
	overflow: hidden;
	border-radius: 10px;
}

.royal-popular-products-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

/* 关闭按钮 */
.royal-popular-products-alert .royal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 20px;
	cursor: pointer;
	background: #05a077;
	border: none;
	color: #fff;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
}

.royal-popular-products-alert .royal-close:hover {
	background: #00705A;
}

/* 产品卡片（Popular Products 专用） */
.royal-popular-products .royal-list-pic-item {
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid #e6e6e6;
	transition: transform 0.5s ease, box-shadow 0.5s ease;
	padding: 20px;
	cursor: pointer;
	background: #fff;
}

.royal-popular-products .royal-list-pic-item:hover {
	transform: translateY(-5px);
	box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.06);
}

.royal-popular-products .royal-list-pic-item.active {
	border-color: #73D7DC;
	box-shadow: 0 0 0 3px rgba(115, 215, 220, 0.3);
}

.royal-popular-products .royal-list-pic-img {
	padding-bottom: 75%;
	border-radius: 10px;
	overflow: hidden;
}

.royal-popular-products .royal-list-pic-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.royal-popular-products .royal-list-pic-info {
	margin-top: 20px;
}

.royal-popular-products .royal-list-pic-info h3 {
	font-size: 16px;
	text-align: center;
}

/* ==========================================================================
   4. Mint 缩略图轮播 (Mint Thumbnail Swiper)
   ========================================================================== */

/* Mint 缩略图轮播容器（8个全显示，居中 x1.5） */
.royal-mint-swiper-wrap {
	overflow: hidden;
	padding-bottom: 40px;
	background: #F7E052;
}

.royal-mint-swiper-wrap .royal-container-avg-lg {
	max-width: 800px;
}

.royal-mint-swiper {
	padding: 20px 0;
}

.royal-mint-swiper .swiper-slide {
	width: 90px;
	cursor: pointer;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.royal-mint-swiper .swiper-slide-active {
	transform: scale(1.5);
	z-index: 2;
}

.royal-mint-swiper-thumb {
	overflow: hidden;
}

.royal-mint-swiper-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   5. Mint 产品列表 (Mint Product List)
   ========================================================================== */

/* Mint 产品列表（item 背景 = overlay 背景，hover/联动时展开文字） */
.royal-products-mint {
	padding: 0;
	overflow: hidden;
}

/* 品牌颜色变量 */
.royal-products-mint li:nth-child(1)  { --brand-color: #FF6B6B; }
.royal-products-mint li:nth-child(2)  { --brand-color: #E91E63; }
.royal-products-mint li:nth-child(3)  { --brand-color: #FFD700; }
.royal-products-mint li:nth-child(4)  { --brand-color: #ffb2b4; }
.royal-products-mint li:nth-child(5)  { --brand-color: #9C27B0; }
.royal-products-mint li:nth-child(6)  { --brand-color: #2196F3; }
.royal-products-mint li:nth-child(7)  { --brand-color: #05a077; }
.royal-products-mint li:nth-child(8)  { --brand-color: #d4007c; }

.royal-products-mint li {
	padding: 0;
	overflow: hidden;
}

/* item 默认显示渐变背景（同 overlay） */
.royal-products-mint-item {
	position: relative;
	background: radial-gradient(circle at center, #ffffff 0%, var(--brand-color) 100%);
}

/* overlay：默认隐藏（width:0），hover/联动时径向渐变展开 */
.royal-products-mint-overlay {
	padding: 20px;
	text-align: center;
	width: 0%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: 0.5s ease;
	background: radial-gradient(circle at center, #ffffff 0%, var(--brand-color) 100%);
	z-index: 2;
}

.royal-products-mint-item:hover .royal-products-mint-overlay,
.royal-products-mint li.swiper-active .royal-products-mint-overlay {
	width: 100%;
	opacity: 0.98;
}

.royal-products-mint-overlay h3 {
	font-size: 24px;
	margin-bottom: 20px;
	text-transform: capitalize;
	color: #333;
}

.royal-products-mint-btn {
	margin: 60px 0;
	text-align: center;
	overflow: hidden;
}

/* ==========================================================================
   6. 通用列表网格 (List Grid)
   ========================================================================== */
.royal-list-content {
	overflow: hidden;
}

.royal-list-pic-grid {
	overflow: hidden;
}

.royal-list-pic-grid li {
	padding: 20px;
}

/* 角标样式 */
.royal-list-pic-item .royal-badge {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 9;
	width: 32px;
	height: 32px;
	border-radius: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	animation: breathe 1.5s ease-in-out infinite;
}

.royal-list-pic-item .royal-badge-primary {
	background-color: #73D7DC;
}

@keyframes breathe {
	0% {
		transform: scale(1);
		opacity: 0.9;
	}

	50% {
		transform: scale(1.15);
		opacity: 1;
	}

	100% {
		transform: scale(1);
		opacity: 0.9;
	}
}

.royal-list-pic-item {
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid #e6e6e6;
	position: relative;
	transition: transform 0.5s ease;
	padding: 20px;
}

.royal-list-pic-item:hover {
	transform: translateY(-5px);
	box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.06);
	transition: transform 0.5s ease;
}

.royal-list-pic-img {
	padding-bottom: 75%;
	border-radius: 10px;
}

.royal-list-pic-img img {
	object-fit: cover;
}

.royal-list-pic-info {
	overflow: hidden;
	margin-top: 20px;
}

.royal-list-pic-info h3 {
	font-size: 16px;
	margin-bottom: 10px;
}

.royal-list-pic-info-desc {
	color: #666;
	height: 40px;
}

.royal-list-pic-info-date {
	color: #666;
	border-top: 1px solid #e6e6e6;
	margin: 20px 0 0;
	padding-top: 10px;
	display: flex;
	justify-content: space-between;
}

.royal-list-pic-info-more {
	overflow: hidden;
	margin-top: 40px;
}

/* ==========================================================================
   7. 响应式设计 - 平板端 (Responsive - Tablet 992px)
   ========================================================================== */
@media (max-width: 992px) {
	.royal-product-mint-banner {
		height: 50vh;
	}

	.royal-mint-swiper-wrap {
		padding: 20px 0;
	}

	.royal-mint-swiper .swiper-slide {
		width: 75px;
	}

	.royal-products-mint-overlay {
		padding: 15px 10px;
	}

	.royal-products-mint-overlay h3 {
		font-size: 16px;
		margin-bottom: 15px;
	}

	.royal-products-mint-btn {
		margin: 20px 0;
	}

	.royal-product-banner {
		height: 24vh;
	}

	.royal-popular-products {
		padding: 20px 0;
		margin-bottom: 20px;
		background: linear-gradient(90deg, #ffffff 0%, #73d7dc38 100%);
	}

	.royal-popular-products li {
		flex: 0 0 50%;
		padding: 10px;
	}

	.royal-popular-products-alert {
		padding: 30px;
	}

	.royal-popular-products-info-img {
		flex: 0 0 200px;
		max-width: 45%;
	}

	.royal-popular-products-info h1 {
		font-size: 20px;
	}

	.royal-list-pic-grid li {
		padding: 5px;
	}
}

/* ==========================================================================
   8. 响应式设计 - 手机端 (Responsive - Mobile 768px)
   ========================================================================== */
@media (max-width: 768px) {
	.royal-popular-products {
		padding: 40px 0;
		overflow: visible;
	}

	.royal-popular-products li {
		flex: 0 0 100%;
		padding: 10px;
	}

	.royal-popular-products-alert {
		padding: 20px;
		margin: 20px auto 10px;
	}

	.royal-popular-products-info {
		flex-direction: column;
		gap: 15px;
	}

	.royal-popular-products-info-img {
		flex: 0 0 auto;
		max-width: 180px;
		margin: 0 auto;
	}

	.royal-popular-products-info h1 {
		font-size: 18px;
	}

	.royal-popular-products-info h3 {
		font-size: 15px;
	}

	.royal-popular-products-info-desc {
		font-size: 14px;
	}

	.royal-popular-products-alert .royal-close {
		top: 5px;
		right: 10px;
		width: 25px;
		height: 25px;
	}

	/* Mint 手机端调整 */
	.royal-mint-swiper-wrap {
		padding: 15px 0;
	}

	.royal-mint-swiper .swiper-slide {
		width: 60px;
	}

	.royal-mint-swiper .swiper-slide-active {
		transform: scale(1.35);
	}

	.royal-products-mint-overlay {
		padding: 10px;
	}

	.royal-products-mint-overlay h3 {
		font-size: 14px;
		margin-bottom: 10px;
	}

	.royal-products-mint-overlay .royal-btn {
		font-size: 11px;
		padding: 5px 12px;
	}

	.royal-products-mint-btn {
		margin: 20px 0;
	}
}
