

 @media (max-width: 1024px) {
    .royal-container {
        padding: 0 var(--royal-space-default);
        max-width: 100%;
    }

    .royal-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--royal-space-md);
    }

    /* Mobile Navigation */
    .royal-header {
        height: 3.125rem;
        padding: 0;
    }

    .royal-navbar {
        padding: 0;
        height: 3.125rem;
    }

    .royal-mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        width: 1.375rem;
        height: 1rem;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
        justify-content: space-between;
    }

    .royal-mobile-menu-toggle span {
        display: block;
        height: 0.125rem;
        width: 100%;
        background-color: var(--royal-text-dark);
        border-radius: 0.0625rem;
        transition: var(--royal-transition);
        transform-origin: center;
    }

    .royal-mobile-menu-toggle.royal-active span:nth-child(1) {
        transform: translateY(0.4375rem) rotate(45deg);
    }

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

    .royal-mobile-menu-toggle.royal-active span:nth-child(3) {
        transform: translateY(-0.4375rem) rotate(-45deg);
    }

    .royal-nav-menu {
        position: fixed;
        top: 0;
        right: -90%;
        width: 90%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(1.25rem);
        flex-direction: column;
        align-items: flex-start;
        padding: 4.375rem var(--royal-space-md) var(--royal-space-xl);
        box-shadow: -0.3125rem 0 1.875rem rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        gap: 0;
    }

    .royal-nav-menu.royal-active {
        right: 0;
    }

    .royal-nav-menu > li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--royal-border-light);
    }

    .royal-nav-menu > li:last-child {
        border-bottom: none;
    }

    .royal-nav-menu a {
        padding: 0.8rem 0;
        font-size: var(--royal-font-default);
        font-weight: 500;
        color: var(--royal-text-dark);
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .royal-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        display: none;
        width: 100%;
    }

    .royal-dropdown-menu.royal-active {
        display: block;
    }

    .royal-dropdown-menu li {
        border-bottom: none;
    }

    .royal-dropdown-menu a {
        padding: 0.6rem 0 0.6rem 1.2rem;
        font-size: var(--royal-font-sm);
        color: var(--royal-text-light);
    }

    .royal-header-actions {
        display: none;
    }

    .royal-header-actions.royal-mobile {
        display: flex;
        flex-direction: column;
        gap: var(--royal-space-sm);
        width: 100%;
        margin-top: var(--royal-space-lg);
        padding-top: var(--royal-space-lg);
        border-top: 1px solid var(--royal-border-light);
    }

    .royal-header-actions.royal-mobile .royal-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.2rem;
        font-size: var(--royal-font-sm);
    }

    .royal-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(0.3125rem);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: var(--royal-transition);
    }

    .royal-mobile-overlay.royal-active {
        opacity: 1;
        visibility: visible;
    }
}

/* 响应式设计 - 隐藏导航标题并独占一行 */
@media screen and (max-width: 768px) {
    :root {
           
        /* 字体大小 - 基于rem单位 */
    --royal-font-xs: 0.5rem;
    --royal-font-sm: 0.75rem;
    --royal-font-default: 0.875rem;
    --royal-font-md: 1rem;
    --royal-font-lg: 1.25rem;
    --royal-font-xl: 1.5rem;
    --royal-font-xxl: 2rem;
    --royal-font-xxxl: 3rem;


    /* 间距系统 - 基于rem单位 */
    --royal-space-xs: 0.5rem;
    --royal-space-sm: 0.75rem;
    --royal-space-default: 1rem;
    --royal-space-md: 1.25rem;
    --royal-space-lg: 1.5rem;
    --royal-space-xl:2rem;
    --royal-space-xxl:3rem;
    }
    .royal-logo img{
        height: 20px;
    }
  .royal-page-layout {
    grid-template-columns: 1fr; 
    display: block;
  }
  
  .royal-page-navmenu {
    padding: var(--royal-space-md) 0; /* 调整内边距 */
    position: static; /* 移除粘性定位 */
    border-bottom: 1px solid var(--royal-border-light);
  }
  
  .royal-page-navmenu-title {
    display: none; /* 隐藏导航标题 */
  } 
  .royal-page-navmenu-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--royal-primary-blue) var(--royal-bg-light); /* Firefox */
    -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
    padding-bottom: var(--royal-space-sm);
    gap: 0;
    scroll-snap-type: x mandatory;
  }
.royal-page-article{
    border: none;
    padding: var(--royal-space-md) 0;
}
.royal-contact-details{
    display: block;
}
  /* Webkit 滚动条样式 */
  .royal-page-navmenu-list::-webkit-scrollbar {
    height: 4px;
  }

  .royal-page-navmenu-list::-webkit-scrollbar-track {
    background: var(--royal-bg-light);
    border-radius: 2px;
  }

  .royal-page-navmenu-list::-webkit-scrollbar-thumb {
    background: var(--royal-primary-blue);
    border-radius: 2px;
  }

  .royal-page-navmenu-list::-webkit-scrollbar-thumb:hover {
    background: var(--royal-primary-dark-blue);
  }

  .royal-page-navmenu-list a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: var(--royal-space-sm) var(--royal-space-md);
    border-bottom: none;
    border-right: 1px solid var(--royal-border-light);
    scroll-snap-align: start;
    text-align: center;
    min-width: fit-content;
  }

  .royal-page-navmenu-list a:last-child {
    border-right: none;
  }

  /* 活动状态样式 */
  .royal-page-navmenu-list a.royal-active {
    background: var(--royal-primary-blue);
    color: white;
    border-radius: 20px;
    margin: 0 var(--royal-space-xs);
  }

  .royal-page-navmenu-list a:hover {
    background: var(--royal-bg-light);
    border-radius: 20px;
  }

  /* 隐藏滚动条（可选） */
  .royal-page-navmenu-list.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
  }

  .royal-page-navmenu-list.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
  .royal-page-header{
    padding: 6rem 0 4rem;
  }
  
}
 
/* ===== 页脚响应式设计 ===== */
@media (max-width: 768px) {

    .royal-footer{
        padding: var(--royal-space-lg) 0;
    }
  .royal-footer-content {
    flex-direction: column; 
  }
  
  .royal-footer-contact {
    width: 100%;
    flex-shrink: 1;
    padding-bottom: var(--royal-space-lg);
    border-bottom: 1px solid var(--royal-border-light);
  }
  
  .royal-footer-contact p {
    padding-right: 0;
  }
  
  .royal-footer-contact p .royal-btn {
    display: none;
  }
  
  .royal-footer-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .royal-footer-links-item {
    width: 100%;
    border-bottom: 1px solid var(--royal-border-light);
  }
  
  .royal-footer-links-item:last-child {
    border-bottom: none;
  }
  
  .royal-footer-links-item h3 {
    position: relative;
    padding: var(--royal-space-sm) 0;
    font-weight: 400;
    margin: 0;
    cursor: pointer; 
  }
  
  .royal-footer-links-item h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--royal-font-lg);
    font-weight: 300;
    transition: var(--royal-transition);
  }
  
  .royal-footer-links-item h3.active::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
  }
  
  .royal-footer-links-item ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
    padding-left: 0;
  }
  
  .royal-footer-links-item ul.active {
    max-height: 500px;
    padding-bottom: var(--royal-space-md);
  }
  
  .royal-footer-links li {
    margin-bottom: var(--royal-space-default);
  }
  
  .royal-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--royal-space-md);
  }
  
  .royal-footer-bottom-fl {
    flex-direction: column;
    gap: var(--royal-space-sm);
  }
  .royal-hr-training-cards,
  .royal-benefits-section,
  .royal-stats-container,
  .royal-cate-list,
  .royal-careers-grid{
    grid-template-columns: repeat(1,1fr);
  }
  
}