@font-face {
    font-family: 'Barlow';
    src: url('__CDN__/assets/fonts/Barlow-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* The following styles are migrated from layout.html <style> tag */

/* Global smooth scrolling */
html {
    scroll-behavior: smooth;
}

.navbar-transparent {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation bar transition animation */
nav {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a, nav button {
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Text color adjustment for transparent navigation bar */
.navbar-transparent .text-gray-700 {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-transparent .text-gray-900 {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-transparent .hover\:text-primary-600:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-transparent .hover\:bg-gray-100:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}



.navbar-transparent #mobile-menu .text-gray-700 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-transparent #mobile-menu .hover\:text-primary-600:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-transparent #mobile-menu .hover\:bg-gray-100:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Logo text color in transparent state */
.navbar-transparent .bg-gradient-to-r {
    background: linear-gradient(to right, #ffffff, #f8fafc) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Logo image in transparent state changed to white */
.navbar-transparent .logo-container img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navbar-transparent .logo-container a:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

/* Navigation link style in transparent state */
.navbar-transparent a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Base style for "Contact Us" button - ensure consistent border */
.bg-primary-600 {
    border: 1px solid transparent;
    box-sizing: border-box;
}

/* "Contact Us" button style in transparent state */
.navbar-transparent .bg-primary-600 {
    background-color: rgba(37, 99, 235, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px);
}

.navbar-transparent .bg-primary-600:hover {
    background-color: rgba(29, 78, 216, 0.9) !important;
    transform: scale(1.05);
}

/* Mobile menu button color in transparent state */
.navbar-transparent .md\:hidden button {
    color: white !important;
}

.navbar-transparent .md\:hidden button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Dropdown menu arrow color in transparent state */
.navbar-transparent .fa-caret-down {
    color: white !important;
}

/* Search button style in transparent state */
.navbar-transparent #search-toggle-btn {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-transparent #search-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Multilingual button style in transparent state */
.navbar-transparent .swmultilingual .dropdown-toggle {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-transparent .swmultilingual .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Active primary navigation style in transparent state */
.navbar-transparent .nav-link-active {
    color: #1f2937 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-transparent .nav-link-active:hover {
    color: #1f2937 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Dropdown arrow color for active navigation in transparent state */
.navbar-transparent .nav-link-active .fa-caret-down {
    color: #1f2937 !important;
}

/* Secondary navigation title style in transparent state */
.navbar-transparent .group:hover .absolute .text-gray-900 {
    color: #1f2937 !important;
    text-shadow: none !important;
}

.navbar-transparent .group:hover .absolute .font-medium {
    color: #1f2937 !important;
    text-shadow: none !important;
}

/* Active item style for secondary navigation in transparent state */
.navbar-transparent .bg-primary-50 {
    background-color: rgba(239, 246, 255, 0.95) !important;
}

.navbar-transparent .text-primary-600 {
    color: #2563eb !important;
    text-shadow: none !important;
}

/* Full-screen dropdown menu style */
.group:hover .mega-dropdown {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Background optimization for full-screen dropdown menu in transparent state */
.navbar-transparent .group:hover .mega-dropdown {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hover effect for dropdown menu items */
.group:hover .mega-dropdown a:hover {
    background: linear-gradient(to right, rgba(239, 246, 255, 0.9), rgba(219, 234, 254, 0.9)) !important;
}

/* Hover effect for dropdown menu items in transparent state */
.navbar-transparent .group:hover .mega-dropdown a:hover {
    background: linear-gradient(to right, rgba(239, 246, 255, 0.9), rgba(219, 234, 254, 0.9)) !important;
}

/* Animation optimization for full-screen dropdown menu */
.group:hover .mega-dropdown {
    animation: megaMenuSlideDown 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes megaMenuSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Secondary menu title hover effect */
.group:hover .absolute .group\/sub:hover {
    transform: translateX(4px);
}

/* Hover effect for tertiary menu items */
.group:hover .absolute .group\/third:hover {
    transform: translateX(2px);
}

/* Border and shadow optimization for full-screen dropdown menu */
.group:hover .absolute {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Separator for secondary menu titles */
.group:hover .absolute .border-b {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Optimization for spacing between tertiary menu items */
.group:hover .absolute .pl-4 {
    padding-left: 1.5rem;
}

/* Maximum height for full-screen dropdown menu content area */
.group:hover .absolute .max-w-7xl {
    max-height: 80vh;
    overflow-y: auto;
}

/* Scrollbar style */
.group:hover .absolute .max-w-7xl::-webkit-scrollbar {
    width: 6px;
}

.group:hover .absolute .max-w-7xl::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.group:hover .absolute .max-w-7xl::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.group:hover .absolute .max-w-7xl::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Base style for full-screen dropdown menu */
.mega-dropdown {
    width: 100vw !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: none !important;
    position: fixed !important;
    z-index: 1000 !important;
    margin-top: 0 !important;
}

/* Add hover error area for dropdown menu */
.group:hover .mega-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.nav-link-active {
    color: #2563eb !important;
    font-weight: 600 !important;
    background-color: #f3f4f6 !important;
    box-sizing: border-box;
}

/* Mobile navigation active state */
.mobile-nav-active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
    border-left: 3px solid #2563eb;
}

/* Mobile navigation active state in transparent state */
.navbar-transparent .mobile-nav-active {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    border-left: 3px solid #2563eb !important;
    text-shadow: none !important;
}

/* Mobile search button style in transparent state */
.navbar-transparent #mobile-search-btn {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-transparent #mobile-search-btn:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.float-btn {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    transform: scale(1);
}

.float-btn:hover {
    background-color: #1d4ed8;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

/* Multilingual dropdown menu style */
.swmultilingual {
    position: relative;
    list-style: none;
}

.swmultilingual .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: all 0.2s ease;
    text-decoration: none;
}

.swmultilingual:hover .dropdown-toggle::before {
    color: #2563eb;
}

.swmultilingual .dropdown-toggle:hover {
    color: #2563eb;
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

.swmultilingual .dropdown-toggle img {
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.swmultilingual .dropdown-toggle:hover img {
    transform: scale(1.05);
}

.swmultilingual .dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 8px;
    width: 192px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background-color: white;
    border: 1px solid #f3f4f6;
    padding: 8px 0;
    z-index: 50;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.swmultilingual:hover .dropdown-menu,
.swmultilingual .dropdown-menu:hover {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.swmultilingual .dropdown-menu li {
    list-style: none;
}

.swmultilingual .dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.swmultilingual .dropdown-menu li a:hover {
    background: linear-gradient(to right, #eff6ff, #dbeafe);
    color: #2563eb;
}

.swmultilingual .dropdown-menu li.active a {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.swmultilingual .dropdown-menu li a img {
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-right: 12px;
    transition: transform 0.2s ease;
}

.swmultilingual .dropdown-menu li a:hover img {
    transform: scale(1.1);
    border-color: #bfdbfe;
}

/* Simplified dropdown arrow */
.swmultilingual .dropdown-toggle::after {
    content: '';
    margin-left: 8px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #9ca3af;
    transition: all 0.2s ease;
}

.swmultilingual:hover .dropdown-toggle::after {
    border-top-color: #2563eb;
    transform: rotate(180deg);
}

/* Mobile multilingual menu style */
.mobile-language-menu a {
    transition: all 0.2s ease;
}

.mobile-language-menu a:hover {
    transform: translateX(4px);
}

/* Language switch animation */
@keyframes languageSwitch {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.swmultilingual .dropdown-toggle img:hover,
.mobile-language-menu a img:hover {
    animation: languageSwitch 0.3s ease-in-out;
}

/* Optimization for dropdown menu position */
@media (max-width: 640px) {
    .swmultilingual .dropdown-menu {
        left: 0;
        right: auto;
        width: 100%;
    }
    
    /* Mobile full-screen dropdown menu style */
    .group:hover .absolute {
        left: 50% !important;
        right: auto !important;
        width: 100vw !important;
        max-width: none !important;
        transform: translateX(-50%) !important;
        position: fixed !important;
        z-index: 1000 !important;
    }
    
    .group:hover .absolute .max-w-7xl {
        max-width: none !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .group:hover .absolute .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Base positioning for multilingual button */
.swmultilingual .dropdown-toggle {
    position: relative;
}

/* Ensure multilingual button content displays correctly */
.swmultilingual .dropdown-toggle {
    white-space: nowrap;
    overflow: hidden;
}

/* Hide possible garbled content */
.swmultilingual .dropdown-toggle > * {
    vertical-align: middle;
}

/* Optimize flag image display */
.swmultilingual .dropdown-toggle img {
    display: inline-block;
    vertical-align: middle;
}

/* Search overlay style */
#search-overlay {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

#search-overlay.search-overlay-show {
    visibility: visible;
}

#search-overlay.search-overlay-show {
    opacity: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-modal {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#search-overlay.search-overlay-show .search-modal {
    transform: scale(1);
    opacity: 1;
}

/* Search input style optimization */
#search-input {
    font-size: 18px;
    line-height: 1.5;
}

#search-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search suggestion button animation */
.search-suggestion {
    transform: scale(1);
    transition: all 0.2s ease;
}

.search-suggestion:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Search overlay enter animation optimization */
#search-overlay.search-overlay-show .search-modal {
    animation: searchModalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes searchModalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Responsive search box */
@media (max-width: 640px) {
    .search-modal {
        margin: 20px;
        padding: 24px;
    }
    
    #search-input {
        font-size: 16px;
        padding: 12px 16px 12px 48px;
    }
    
    .search-suggestion {
        font-size: 12px;
        padding: 6px 12px;
    }
}
/* Contact Us button background remains blue after navigation bar scroll */
.navbar-scrolled .bg-primary-600 {
    background-color: #2563eb !important;
    border-color: transparent !important;
    color: #fff !important;
}
.navbar-scrolled .bg-primary-600:hover {
    background-color: #1d4ed8 !important;
}

/* Breadcrumb navigation style optimization */
.breadcrumb-item:last-child .breadcrumb-link {
    color: white !important;
    font-weight: 600;
}

.breadcrumb-item:last-child svg {
    display: none;
}

.breadcrumb-link {
    position: relative;
}

.breadcrumb-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.breadcrumb-link:hover::after {
    width: 100%;
}

/* ========== 移动端菜单样式重写 ========== */

/* 移动端菜单基础样式 */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.mobile-menu-open {
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单内容容器 */
#mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#mobile-menu.mobile-menu-open #mobile-menu-content {
    transform: translateY(0);
}

/* 移动端菜单头部 */
#mobile-menu-content .flex.items-center.justify-between {
    flex-shrink: 0;
    padding: 1rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 关闭按钮样式 */
#mobile-menu-close-btn {
    border-radius: 50%;
    transition: all 0.2s ease;
}

#mobile-menu-close-btn:hover {
    background-color: rgba(229, 231, 235, 0.8);
    transform: scale(1.05);
}

/* 移动端菜单内容区域 */
#mobile-menu-content .flex-1 {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 自定义滚动条 */
#mobile-menu-content .flex-1::-webkit-scrollbar {
    width: 4px;
}

#mobile-menu-content .flex-1::-webkit-scrollbar-track {
    background: transparent;
}

#mobile-menu-content .flex-1::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 2px;
}

#mobile-menu-content .flex-1::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.8);
}

/* 移动端菜单底部功能区 */
#mobile-menu-content .border-t {
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 菜单项样式优化 */
#mobile-menu .mobile-nav-parent,
#mobile-menu a {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#mobile-menu .mobile-nav-parent:hover,
#mobile-menu a:hover {
    background-color: rgba(243, 244, 246, 0.8);
    transform: translateX(2px);
}

#mobile-menu .mobile-nav-parent:active,
#mobile-menu a:active {
    transform: translateX(1px) scale(0.98);
}

/* 箭头动画 */
#mobile-menu .mobile-nav-parent .fa-chevron-right {
    transition: transform 0.2s ease;
}

#mobile-menu .mobile-nav-parent:hover .fa-chevron-right {
    transform: translateX(2px);
}

#mobile-menu #mobile-menu-back .fa-chevron-left {
    transition: transform 0.2s ease;
}

#mobile-menu #mobile-menu-back:hover .fa-chevron-left {
    transform: translateX(-2px);
}

/* 返回按钮样式 */
#mobile-menu-back {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

#mobile-menu-back:hover {
    background-color: rgba(139, 92, 246, 0.1);
    transform: translateX(-2px);
}

/* 移动端菜单激活状态 */
.mobile-nav-active {
    background-color: rgba(139, 92, 246, 0.1) !important;
    color: rgb(139, 92, 246) !important;
    font-weight: 600;
}

/* 透明导航栏下的移动端菜单样式 */
.navbar-transparent #mobile-menu {
    background-color: rgba(0, 0, 0, 0.5);
}

.navbar-transparent #mobile-menu-content {
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-transparent #mobile-menu .text-gray-700,
.navbar-transparent #mobile-menu .text-gray-900 {
    color: rgb(31, 41, 55) !important;
}

.navbar-transparent #mobile-menu .hover\:text-primary-600:hover {
    color: rgb(139, 92, 246) !important;
}

.navbar-transparent #mobile-menu .hover\:bg-gray-100:hover {
    background-color: rgba(243, 244, 246, 0.8) !important;
}

/* 滚动导航栏下的移动端菜单样式 */
.navbar-scrolled #mobile-menu {
    background-color: rgba(0, 0, 0, 0.5);
}

.navbar-scrolled #mobile-menu-content {
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-scrolled #mobile-menu .text-gray-700,
.navbar-scrolled #mobile-menu .text-gray-900 {
    color: rgb(31, 41, 55) !important;
}

.navbar-scrolled #mobile-menu .hover\:text-primary-600:hover {
    color: rgb(139, 92, 246) !important;
}

.navbar-scrolled #mobile-menu .hover\:bg-gray-100:hover {
    background-color: rgba(243, 244, 246, 0.8) !important;
}

/* 搜索按钮样式 */
#mobile-menu #mobile-search-btn {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

#mobile-menu #mobile-search-btn:hover {
    background-color: rgba(229, 231, 235, 0.8);
    transform: translateY(-1px);
}

/* 联系我们按钮样式 */
#mobile-menu a[href*="contact"] {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

#mobile-menu a[href*="contact"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* 语言菜单样式 */
.mobile-language-menu a {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-language-menu a:hover {
    background-color: rgba(243, 244, 246, 0.8);
    transform: translateX(2px);
}

/* 菜单切换动画 */
#mobile-menu-level1,
#mobile-menu-level2 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-level1.hidden {
    opacity: 0;
    transform: translateX(-20px);
}

#mobile-menu-level2.hidden {
    opacity: 0;
    transform: translateX(20px);
}

/* 响应式优化 */
@media (max-width: 640px) {
    #mobile-menu-content {
        height: 100vh;
    }
    
    #mobile-menu .mobile-nav-parent,
    #mobile-menu a {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    #mobile-menu-level2-title {
        font-size: 1rem;
    }
}

/* 动画关键帧 */
@keyframes mobileMenuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileMenuSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes mobileMenuFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mobileMenuFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    #mobile-menu .mobile-nav-parent,
    #mobile-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    #mobile-menu {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    #mobile-menu-content {
        background-color: rgba(255, 255, 255, 0.98);
        border: 2px solid rgb(0, 0, 0);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    #mobile-menu,
    #mobile-menu-content,
    #mobile-menu .mobile-nav-parent,
    #mobile-menu a,
    #mobile-menu-close-btn,
    #mobile-menu .fa-chevron-right,
    #mobile-menu .fa-chevron-left {
        transition: none;
        animation: none;
    }
}