/* 头部导航 */
.royal-head {
    padding: 2rem 0;
    transition: 0.5s ease;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
}

/* 滚动压缩效果 */
.royal-head-min {
    transition: 0.5s ease;
    box-shadow: 0.4rem 1rem 1rem rgba(0, 0, 0, 0.02);
    padding: 1rem 0;
    background: #fff;
}

.royal-head-min .royal-logo {
    height: 4rem;
    line-height: 4rem;
    padding-top: 0;
}

.royal-head-min .royal-logo img {
    height: 4rem;
}

.royal-head-min .royal-navmenu-item-link {
    color: #333;
}

.royal-head-min .royal-navmenu-item .royal-icon {
    color: #333;
}

/* Logo样式 */
.royal-logo {
    overflow: hidden;
    transition: 0.5s ease;
    display: flex;
    align-items: center;
}

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

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

.royal-logo span {
    font-size: 2.4rem;
    font-weight: bold;
    margin-left: 1rem;
    background: linear-gradient(135deg, #f7b700, #a66a16);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 导航菜单 */
.royal-navmenu {
    display: flex;
    justify-content: space-around;
}

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

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

.royal-navmenu-item-link {
    display: block;
    line-height: 4rem;
    padding: 0 2rem;
    font-size: 1.5rem; 
    color: #fff;
    font-weight: bold;
    text-transform: capitalize;
}

.royal-navmenu-dropdown-link.active {
    color: #ffc31f;
    font-weight: bold;
}

.royal-navmenu-item-link:hover,
.royal-navmenu-item.active .royal-navmenu-item-link {
    color: #ffc31f;
}

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

.royal-navmenu-item .royal-icon {
    position: absolute;
    right: 0.5rem;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease;
    color: #fff;
}

/* 下拉菜单 */
.royal-navmenu-dropdown {
    position: absolute;
    left: 0;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0.2rem 0.4rem 1rem rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(2rem);
    transition: 0.5s ease;
    z-index: 1000;
    padding: 0 2rem;
    list-style: none;
    min-width: 100%;
    margin: 0;
    top: 120%;
}

/* 下拉三角 */
.royal-navmenu-dropdown::before {
    content: "";
    position: absolute;
    top: -1.6rem;
    left: 1.6rem;
    border: 0.8rem solid transparent;
    border-bottom-color: #fff;
    z-index: 1001;
}

/* 激活状态 */
.royal-navmenu-dropdown-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉链接 */
.royal-navmenu-dropdown-link {
    display: block;
    white-space: nowrap;
    font-size: 1.4rem;
    border-bottom: 0.1rem solid #e6e6e6;
    font-weight: normal;
    line-height: 4rem;
    text-decoration: none;
    color: #333;
}

.royal-navmenu-dropdown li:last-child a {
    border: none;
}

.royal-navmenu-item-lang {
    color: #ffc31f;
    font-weight: bold;
}

.royal-set-lang-active {
    color: #ffc31f;
    font-weight: bold;
}

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

.royal-search {
    padding: 1.2rem 0;
}

.royal-search input {
    margin-right: 0.5rem;
}

/* 页脚 */
.royal-foot {
    position: relative;
    overflow: hidden;
}

.royal-foot-content {
    background: #121212;
    background: linear-gradient(180deg, #121212 0%, #000 100%);
    padding: 8rem 0 0;
    overflow: hidden;
}

.royal-foot-logo img {
    max-height: 5rem;
    margin-bottom: 1rem;
}

.royal-footnav-list {
    overflow: hidden;
    padding: 0 4rem;
    color: #e6e6e6;
}

.royal-footnav-list a {
    font-size: 1.6rem;
    font-weight: 600;
    color: inherit;
    margin-bottom: 1rem;
    display: block;
}

.royal-footnav-list a:hover {
    color: #ffc31f;
}

.royal-footnav-sub li {
    padding: 0.5rem 0;
}

.royal-footnav-sub a {
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0;
    text-indent: 1em;
}

.royal-footnav-sub a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.6rem;
    height: 0.6rem;
    background: rgba(201, 162, 39, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.royal-foot-contact-info li {
    padding: 0.5rem 0;
}

.royal-foot-contact-item i {
    margin-right: 0.5rem;
}

.royal-foot-contact-title {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #e6e6e6;
}

/* 社交图标 */
.royal-foot-contact-icons {
    overflow: hidden;
    padding: 2rem 0 0;
}

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

.royal-foot-contact-icons li a:hover {
    background: #ffc31f;
    color: white;
    transform: translateY(-0.2rem);
}

.royal-foot-contact-info {
    overflow: hidden;
    color: #e6e6e6;
}

.royal-foot-contact-item {
    padding: 0.5rem 0;
}

.royal-foot-contact-item img {
    max-width: 15rem;
}

/* 版权信息 */
.royal-copyright {
    overflow: hidden;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.2);
    color: #e6e6e6;
}

.royal-copyright a {
    display: inline-block;
    padding: 0 0.5rem;
}

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

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

/* 返回顶部 */
.royal-gotop {
    border-radius: 100%;
    bottom: 4rem;
    right: 2rem;
    background: #ffc31f;
    width: 4.8rem;
    height: 4.8rem;
    transition: all ease 0.5s;
    backdrop-filter: blur(1rem);
    border: 0.1rem 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: #ffc31f;
    transform: translateY(-0.5rem);
}



 /* 浮动图标样式 */
 .royal-sidebar {
     position: fixed;
     bottom:20%;
     right: 2rem;
     z-index: 100;
     animation: float 2s ease-in-out infinite;
 }

 .royal-sidebar-link {
     width: 6.5rem;
     height: 6.5rem;
     transition: transform 0.3s ease;
     filter: drop-shadow(0 5px 8px rgba(37, 211, 102, 0.4));
     /* WhatsApp品牌色阴影 */
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 2.4rem;
     color: #fff;
     background: linear-gradient(to right, #6fbf4c, #049106);
 }

 .royal-sidebar-link:hover {
     transform: scale(1.1);
     filter: drop-shadow(0 8px 12px rgba(37, 211, 102, 0.6)); 
     color: #fff;
 }

/* 移动端适配 */
@media (max-width: 992px) {
    .royal-container {
        padding: 0 1.5rem;
    }

    .royal-container-avg,
    .royal-container-avg-lg {
        padding: 0 1rem;
    }

    .royal-head {
        padding: 1rem 0;
        background: #fff;
        box-shadow: 0.2rem 0.4rem 1rem rgba(0, 0, 0, 0.05);
    }

    .royal-head-min .royal-logo {
        height: 3rem;
        line-height: 3rem;
    }

    .royal-logo {
        padding: 0;
        height: 3rem;
    }

    .royal-logo span {
        display: none;
    }

    .royal-head-min .royal-logo img,
    .royal-logo img {
        height: 3rem;
    }

    .royal-search {
        overflow: hidden;
        padding: 0;
        margin-top: 2rem;
        position: relative;
    }

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

    /* 汉堡菜单 */
    .royal-navmenu-toggle {
        display: flex;
        position: absolute;
        top: 0.7rem;
        right: 1.5rem;
        width: 4rem;
        height: 3.6rem;
        background: #ffc31f;
        padding: 1rem;
        border-radius: 0.5rem;
        cursor: pointer;
        flex-direction: column;
        justify-content: space-between;
        z-index: 1003;
        border: 0.1rem solid #ffc31f;
    }

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

    /* 激活态：叉号 */
    .royal-navmenu-toggle-active span:nth-child(1) {
        transform: translateY(0.7rem) rotate(45deg);
    }

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

    .royal-navmenu-toggle-active span:nth-child(3) {
        transform: translateY(-0.5rem) 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: 5rem 4rem;
    }

    .royal-navmenu-active {
        right: 0;
        box-shadow: 0.4rem 1rem 2rem rgba(0, 0, 0, 0.2);
    }

    .royal-navmenu-content {
        flex-direction: column;
    }

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

    .royal-navmenu-item-link {
        line-height: 5rem;
        padding: 0;
        display: inline-block;
        color: #333;
    }

    .royal-navmenu-item-link:hover,
    .royal-navmenu-item.active .royal-navmenu-item-link {
        background: none;
        color: #ffc31f;
    }

    .royal-navmenu-item .royal-icon {
        height: 5rem;
        color: #333;
        width: 3.2rem;
    }

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

    /* 下拉菜单移动端展开 */
    .royal-navmenu-dropdown {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: #f3f3f3; 
       
    }
    .royal-navmenu-dropdown::before{
        border-bottom-color: #f3f3f3; 
    }

    .royal-navmenu-dropdown-active {
        max-height: 200rem;
        overflow: visible;
         margin-bottom: 2rem;
    }

    /* 滚动锁定 */
    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-content {
        padding: 0;
    }

    .royal-footnav-list {
        padding: 2rem 0;
    }

    .royal-footnav-sub {
        background: #161616;
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 1rem;
    }

    .royal-copyright {
        padding: 1rem 0;
        margin-top: 1rem;
    }

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