/* =====================================
   基础样式 - Base Styles
   包含：全局重置、排版、容器、按钮、表单、Swiper轮播、翻译加载
   ===================================== */

/* ===== 全局排版 ===== */
body {
	/* font-family: system-ui, -apple-system, "Helvetica Neue", "PingFang SC", "Microsoft Yahei", sans-serif; */
	font-family: 'Quicksand', sans-serif;
	color: #333;
	font-size: 14px;
}

*+h1,
*+h2,
*+h3,
*+h4,
*+h5,
*+h6 {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}

p,
hr,
ul,
ol,
dl,
blockquote,
pre,
address,
fieldset,
figure {
	margin: 0;
}

/* ===== 表单元素 ===== */
.royal-form select,
.royal-form textarea,
.royal-form input[type="text"],
.royal-form input[type="password"],
.royal-form input[type="datetime"],
.royal-form input[type="datetime-local"],
.royal-form input[type="date"],
.royal-form input[type="month"],
.royal-form input[type="time"],
.royal-form input[type="week"],
.royal-form input[type="number"],
.royal-form input[type="email"],
.royal-form input[type="url"],
.royal-form input[type="search"],
.royal-form input[type="tel"],
.royal-form input[type="color"],
.royal-form-field {
	border-radius: 2px;
	border-color: #e6e6e6;
}

/* ===== 链接样式 ===== */
a {
	color: #333;
	transition: 0.5s ease;
	font-size: 14px;
}

a:hover {
	color: #73D7DC;
	transition: 0.5s ease;
}

a:focus {
	color: #1ed7e1;
	transition: 0.5s ease;
}

/* ===== 图片 ===== */
img {
	max-width: 100%;
}

/* ===== 容器 ===== */
[class*="royal-u-"] {
	padding: 0;
}

.royal-container-lg {
	max-width: 1400px;
	padding: 0 20px;
	margin: 0 auto;
}

.royal-container {
	max-width: 1440px;
	padding: 0 20px;
}

.royal-container-avg {
	max-width: 1440px;
	padding: 0 10px;
	margin: 0 auto;
}

.royal-container-avg-lg {
	max-width: 1440px;
	padding: 0;
	margin: 0 auto;
}

/* ===== 基础按钮样式 ===== */
.royal-btn {
	position: relative;
	overflow: hidden;
	transition: 0.5s ease;
	border-radius: 2px;
	/* font-size: 14px; */
}

/* 流光效果 */
.royal-btn:before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	transition: left 0.5s ease;
	opacity: 0;
}

.royal-btn:hover:before {
	left: 20%;
	opacity: 1;
}

/* 透明按钮 */
.royal-btn-transparent {
	background-color: transparent;
	border-color: #fff;
	color: #fff;
}

.royal-btn-transparent:hover {
	background-color: #73D7DC;
	border-color: #73D7DC;
	color: #fff;
}

/* 主要按钮 */
.royal-btn-primary {
	background-color: #73D7DC;
	border-color: #73D7DC;
	color: #fff;
}

.royal-btn-primary:hover {
	background-color: #73D7DC;
	border-color: #73D7DC;
	color: #fff;
}

/* 默认按钮 */
.royal-btn-default {
	background-color: #fff;
	border-color: #e6e6e6;
}

.royal-btn-default:hover {
	background-color: #73D7DC;
	border-color: #73D7DC;
	color: #fff;
}

/* 灰色按钮 */
.royal-btn-gray {
	background-color: #f3f3f3;
	border-color: #e6e6e6;
}

.royal-btn-gray:hover {
	background-color: #73D7DC;
	border-color: #73D7DC;
	color: #fff;
}

/* 警告色按钮 */
.royal-btn-warning {
	background-color: #F2DD62;
	border-color: #F2DD62;
	color: #333 !important;
}

.royal-btn-warning:hover {
	background-color: #ead03d;
	border-color: #ead03d;
}

/* 黑色按钮 */
.royal-btn-black {
	background-color: #333;
	border-color: #131313;
	color: #fff;
}

.royal-btn-black:hover {
	background-color: #73D7DC;
	border-color: #73D7DC;
	color: #fff;
}

/* 玻璃覆盖层 */
.royal-btn:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.1);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.royal-btn:hover {
	transform: translateY(-2px);
}

.royal-btn:hover:after {
	opacity: 0.6;
}

/* ===== 文本颜色工具类 ===== */
.royal-text-primary {
	color: #73D7DC;
}

.royal-text-warning {
	color: #F2DD62;
}

/* ===== 下拉菜单 ===== */
.royal-dropdown-content {
	border-radius: 5px;
}

/* ===== 文本截断（多行省略）===== */
.royal-line-clamp {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	line-height: 1.3em;
	-webkit-line-clamp: 2;
	/* number of lines to show */
	max-height: 2.6em;
}

/* ===== Swiper轮播样式 ===== */
.swiper-pagination {
	bottom: 20px !important;
}

.swiper-pagination-bullet {
	width: 18px;
	height: 18px;
	background: #1ed7e1;
	border: 2px solid #fff;
	opacity: 0.6;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.swiper-pagination-bullet-active {
	background: #1ed7e1 !important;
	opacity: 1;
	width: 24px;
	border-radius: 40px;
}

.swiper-button-next,
.swiper-button-prev {
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.5s ease;
	z-index: 3;
	border: 1px solid rgba(255, 255, 255, 0.434);
}

.swiper-button-next:after,
.swiper-button-prev:after {
	content: none;
}

.swiper-button-next i,
.swiper-button-prev i {
	color: #fff;
	font-size: 16px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background: #73D7DC;
	transform: scale(1.1);
}

/* ===== 翻译加载遮罩 ===== */
.royal-translate-loading {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #B4E1DC;
	z-index: 99999;
	display: flex;
	justify-content: center;
	align-items: center;
}

.royal-translate-spinner {
	width: 48px;
	height: 48px;
	border: 3px solid #f3f3f3;
	border-top: 4px solid #73D7DC;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	background: url(/uploads/images/logo.png) no-repeat center;
	background-size: 80%;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
