/* 全局样式 */
body {
    font-family: 'Quicksand', system-ui, -apple-system, "Helvetica Neue", "PingFang SC", "Microsoft Yahei", sans-serif;
    color: #333;
    font-size: 1.4rem;
}

*+h1, *+h2, *+h3, *+h4, *+h5, *+h6,
h1, h2, h3, h4, h5, h6,
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: 0.2rem;
    border-color: #e6e6e6;
}

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

a:hover {
    color: #ffc31f;
}

a:focus {
    color: #f7b700;
}

img {
    max-width: 100%;
}

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

/* 容器宽度 */
.royal-container-lg,
.royal-container {
    max-width: 1400px;
    padding: 0 2rem;
    margin: 0 auto;
}

.royal-container-avg {
    max-width: 1400px;
    padding: 0 1rem;
    margin: 0 auto;
}

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

/* 按钮基础样式 */
.royal-btn {
    position: relative;
    overflow: hidden;
    transition: 0.5s ease;
    border-radius: 0.2rem;
}

/* 按钮流光效果 */
.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: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(-0.2rem);
}

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

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

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

.royal-btn-primary {
    background-color: #ffc31f;
    border-color: #ffc31f;
    color: #fff;
}

.royal-btn-primary:hover {
    background-color: #ffc31f;
    border-color: #ffc31f;
    color: #fff !important;
}
.royal-btn-primary:hover,
.royal-btn-primary:focus,
.royal-btn-primary:active,
.royal-btn-primary.royal-active,
.royal-dropdown.royal-active .royal-btn-primary.royal-dropdown-toggle {
  color: #fff;
  border-color: #ffc31f;
}
.royal-btn-primary:hover,
.royal-btn-primary:focus {
  background-color: #ffc31f;
}
.royal-btn-default {
    background-color: #fff;
    border-color: #e6e6e6;
}

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

.royal-btn-gray {
    background-color: #f3f3f3;
    border-color: #e6e6e6;
}

.royal-btn-gray:hover {
    background-color: #ffc31f;
    border-color: #ffc31f;
    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: #ffc31f;
    border-color: #ffc31f;
    color: #fff;
}

/* 文字颜色 */
.royal-text-primary {
    color: #ffc31f;
}

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

/* 下拉菜单 */
.royal-dropdown-content {
    border-radius: 0.5rem;
}

/* 多行省略 */
.royal-line-clamp {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: 1.3em;
    -webkit-line-clamp: 2;
    max-height: 2.6em;
}

/* Swiper轮播样式 */
.swiper-pagination-bullet {
    width: 1rem;
    height: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 0.1rem solid rgba(0, 0, 0, 0.2);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    border-color: #ffc31f;
    background: #ffc31f !important;
    opacity: 1;
    width: 2rem;
    border-radius: 4rem;
}

.swiper-button-next,
.swiper-button-prev {
    width: 4.8rem;
    height: 4.8rem;
    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: 0.1rem 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: 1.6rem;
}

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

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

.royal-translate-spinner {
    width: 4.8rem;
    height: 4.8rem;
    border: 0.3rem solid #f3f3f3;
    border-top: 0.4rem solid #ffc31f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    background: url(/uploads/images/logo.png) no-repeat center;
    background-size: 80%;
}


/* 工具类 */
.royal-radius {
    border-radius: 0.5rem !important;
}


.royal-btn-primary.royal-active, .royal-btn-primary:active, .royal-dropdown.royal-active .royal-btn-primary.royal-dropdown-toggle{
    background-color: #ffc31f;
}