        @import url("../../assets/font/font.css");
        @import url("./theme-fonts.css");
        @import url("./footer.css");
        @import url("./home-modules.css");

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            tap-highlight-color: transparent;
        }

        body {
            font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
        }

        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 1000;
            transition: all 0.3s ease;
            border-bottom: 1px solid #edf0f5;
        }

        .navbar:hover,
        .navbar.search-active {
            background: rgba(255, 255, 255, 1);
        }

        .mxp-nav-auth-hidden,
        body.mxp-nav-logged-in #loginBtn,
        body.mxp-nav-logged-in .register-btn {
            display: none !important;
        }

        body.mxp-nav-logged-in #userDropdown {
            display: block !important;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-left: 24px;
            padding-right: 0;
            height: 62px;
            width: 100%;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 32px;
            position: relative;
            flex: 1;
            min-width: 0;
        }

        .nav-scroll-container {
            position: relative;
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .nav-scroll-btn {
            position: absolute;
            top: 0;
            height: 100%;
            width: 8px;
            z-index: 10;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0;
            visibility: hidden;
        }

        .nav-scroll-btn.show {
            opacity: 1;
            visibility: visible;
        }

        .nav-scroll-btn-left {
            left: 0;
            background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
        }

        .nav-scroll-btn-right {
            right: 0;
            background: linear-gradient(to left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
        }

        .nav-scroll-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 4px;
            height: 4px;
            border-right: 1px solid #666;
            border-bottom: 1px solid #666;
        }

        .nav-scroll-btn-left::after {
            transform: translate(-30%, -50%) rotate(135deg);
        }

        .nav-scroll-btn-right::after {
            transform: translate(-70%, -50%) rotate(-45deg);
        }

        .nav-scroll-btn:hover {
            background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
        }

        .nav-scroll-btn-right:hover {
            background: linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
        }

        .navbar:hover .nav-scroll-btn-left {
            background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        }

        .navbar:hover .nav-scroll-btn-right {
            background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .logo img {
            height: 45px;
            width: auto;
            max-width: 200px;
            object-fit: contain;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 28px;
            list-style: none;
            transition: transform 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
            padding: 0;
            margin: 0;
        }

        .nav-item {
            position: relative;
        }

        .nav-dropdown {
            position: fixed;
            top: 64px;
            left: 0;
            right: 0;
            transform: translateY(-15px);
            width: 100%;
            max-height: 50vh;
            overflow-y: auto;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(0, 0, 0, 0.08);
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            z-index: 999;
        }

        /* 隐藏式滚动条样式 */
        .nav-dropdown::-webkit-scrollbar {
            width: 6px;
        }

        .nav-dropdown::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 3px;
        }

        .nav-dropdown::-webkit-scrollbar-thumb {
            background: transparent;
            border-radius: 3px;
            transition: background 0.3s ease;
        }

        .nav-dropdown:hover::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .nav-dropdown::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.8);
        }

        /* Firefox隐藏式滚动条样式 */
        .nav-dropdown {
            scrollbar-width: thin;
            scrollbar-color: transparent transparent;
        }

        .nav-dropdown:hover {
            scrollbar-color: rgba(255, 255, 255, 0.6) transparent;
        }

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

        .nav-item:hover .nav-link {
            color: var(--mxp-brand, #5b8ff9);
        }

        .nav-item:hover .nav-link::after {
            opacity: 1;
            transform: rotate(-135deg);
        }



        .nav-dropdown-container {
            max-width: 100%;
            margin: 0 auto;
            padding: 25px 20px;
            display: grid;
            grid-template-columns: 220px 1fr;
            gap: 32px;
            align-items: start;
            min-height: auto;
            overflow: hidden;
        }

        .nav-dropdown-intro {
            background: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(26, 115, 232, 0.03) 100%);
            border-radius: 12px;
            padding: 18px 14px;
            margin: 0;
            position: relative;
            height: auto;
            word-wrap: break-word;
            word-break: break-word;
            overflow-wrap: break-word;
            white-space: normal;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
            overflow: hidden;
        }





        .nav-dropdown-intro::after {
            content: '';
            position: absolute;
            top: -20px;
            right: -20px;
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, rgba(26, 115, 232, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .nav-dropdown-intro h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--mxp-brand, #5b8ff9);
            margin-bottom: 12px;
            position: relative;
            z-index: 1;
            word-wrap: break-word;
            word-break: break-word;
            overflow-wrap: break-word;
            white-space: normal;
            width: 100%;
            max-width: 100%;
        }

        .nav-dropdown-intro p {
            color: #555;
            line-height: 1.5;
            margin-bottom: 10px;
            font-size: 13px;
            position: relative;
            z-index: 1;
            word-wrap: break-word;
            word-break: break-word;
            overflow-wrap: break-word;
            white-space: normal;
            width: 100%;
            max-width: 100%;
        }



        .nav-dropdown-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-right: 0;
        }

        .nav-dropdown-section {
            background: transparent;
        }

        .nav-dropdown-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--mxp-brand, #5b8ff9);
            margin-bottom: 20px;
            padding-bottom: 8px;
            border-bottom: 2px solid rgba(26, 115, 232, 0.1);
        }

        .nav-dropdown-item {
            display: block;
            padding: 12px 0;
            color: #333;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s ease;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .nav-dropdown-item:hover {
            color: var(--mxp-brand, #5b8ff9);
        }

        .nav-dropdown-item-title {
            font-weight: 500;
            margin-bottom: 4px;
        }

        .nav-dropdown-item-desc {
            font-size: 12px;
            color: #666;
            line-height: 1.4;
        }

        .nav-badge{display:inline-block;margin-left:7px;padding:1px 6px;border-radius:3px;font-size:11px;line-height:18px;font-weight:500;vertical-align:1px;color:#fff}.nav-badge-hot{background:#e5484d}.nav-badge-new{background:#249b67}.nav-badge-info{background:#2878e6}

        .nav-item-hot::after {
            content: 'HOT';
            background: #ff4757;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 2px;
            margin-left: 8px;
            font-weight: 500;
        }

        .nav-item-new::after {
            content: 'NEW';
            background: #2ed573;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 2px;
            margin-left: 8px;
            font-weight: 500;
        }

        .nav-link {
            color: #333;
            text-decoration: none;
            font-size: 15px;
            font-weight: 400;
            padding: 8px 0;
            transition: all 0.3s ease;
            position: relative;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .nav-link:hover {
            color: var(--mxp-brand, #5b8ff9);
        }

        .nav-link::after {
            content: '';
            width: 4px;
            height: 4px;
            border-right: 1px solid currentColor;
            border-bottom: 1px solid currentColor;
            transform: rotate(45deg);
            transition: transform 0.3s ease;
            opacity: 0.6;
            flex-shrink: 0;
            margin-top: -1px;
        }

        .nav-link:hover::after {
            opacity: 1;
        }



        .nav-right {
            display: flex;
            align-items: center;
            gap: 20px;
            height: 100%;
        }

        .search-box {
            position: relative;
            height: 100%;
            display: flex;
            align-items: center;
        }

        .search-icon {
            position: absolute;
            left: 16px;
            width: 16px;
            height: 16px;
            opacity: 0.6;
            pointer-events: none;
            z-index: 1;
        }

        .search-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            width: 240px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgb(0 0 0 / 8%);
            border-top: none;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1002;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .search-dropdown.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .search-box.expanded .search-dropdown.show {
            width: 360px;
        }

        .search-dropdown-header {
            padding: 16px 20px 8px;
            font-size: 13px;
            color: #666;
            font-weight: 500;
        }

        .search-hot-item {
            padding: 8px 20px;
            color: #333;
            text-decoration: none;
            display: block;
            font-size: 14px;
            transition: background-color 0.2s ease;
        }

        .search-hot-item:hover {
            background: rgba(26, 115, 232, 0.05);
            color: var(--mxp-brand, #5b8ff9);
        }

        .search-results {
            max-height: 300px;
            overflow-y: auto;
        }

        .search-results-list {
            max-height: 250px;
            overflow-y: auto;
        }

        /* 搜索结果滚动条样式 */
        .search-results::-webkit-scrollbar,
        .search-results-list::-webkit-scrollbar {
            width: 6px;
        }

        .search-results::-webkit-scrollbar-track,
        .search-results-list::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 3px;
        }

        .search-results::-webkit-scrollbar-thumb,
        .search-results-list::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 3px;
            transition: background 0.3s ease;
        }

        .search-results::-webkit-scrollbar-thumb:hover,
        .search-results-list::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        /* Firefox滚动条样式 */
        .search-results,
        .search-results-list {
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
        }

        .search-result-item {
            padding: 10px 20px;
            color: #333;
            text-decoration: none;
            display: block;
            font-size: 14px;
            transition: background-color 0.2s ease;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            cursor: pointer;
        }

        .search-result-item:hover {
            background: rgba(26, 115, 232, 0.05);
            color: var(--mxp-brand, #5b8ff9);
        }

        .search-result-title {
            font-weight: 500;
            margin-bottom: 2px;
        }

        .search-result-category {
            font-size: 12px;
            color: #666;
            opacity: 0.8;
        }

        .search-loading {
            padding: 20px;
            text-align: center;
            color: #666;
            font-size: 14px;
        }

        .search-loading::after {
            content: '';
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(26, 115, 232, 0.2);
            border-top: 2px solid var(--mxp-brand, #5b8ff9);
            border-radius: 50%;
            animation: search-spin 1s linear infinite;
            margin-left: 8px;
            vertical-align: middle;
        }

        @keyframes search-spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .no-results-text {
            padding: 20px;
            text-align: center;
            color: #666;
            font-size: 14px;
        }

        .search-input {
            width: 240px;
            height: 100%;
            padding: 0 16px 0 44px;
            border: 1px solid rgb(0 0 0 / 4%);
            border-radius: 0;
            background: rgba(255, 255, 255, 0);
            -webkit-backdrop-filter: blur(10px);
            font-size: 14px;
            font-family: inherit;
            outline: none;
            transition: width 0.3s ease;
            color: rgba(51, 51, 51, 0.8);
        }

        .search-input.expanded {
            width: 360px;
        }

        .search-input::placeholder {
            color: rgba(153, 153, 153, 0.8);
        }

        .search-input:focus {
            background: rgba(255, 255, 255, 0);
            box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
            color: #333;
        }

        .search-input:focus::placeholder {
            color: #999;
        }

        .nav-right-link {
            color: #333;
            text-decoration: none;
            font-size: 15px;
            font-weight: 400;
            padding: 8px 16px;
            transition: all 0.3s ease;
            border-radius: 6px;
        }

        .nav-right-link:hover {
            color: var(--mxp-brand, #5b8ff9);
            background: rgba(26, 115, 232, 0.1);
        }

        .nav-plain-link {
            color: #333;
            text-decoration: none;
            font-size: 15px;
            font-weight: 400;
            padding: 8px 16px;
            transition: none;
            border-radius: 6px;
        }

        .register-btn {
            background: var(--mxp-brand, #5b8ff9);
            color: white !important;
            padding: 0 24px;
            height: 100%;
            display: flex;
            align-items: center;
            border-radius: 0;
            font-weight: 500;
        }

        .register-btn:hover {
            background: #4080ff;
        }

        .register-label-short {
            display: none;
        }

        .nav-tools-link {
        }

        /* 移动端汉堡（与登录注册共用 nav-right，无重复按钮） */
        .mobile-nav-avatar-btn {
            display: none;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            padding: 0;
            border: none;
            border-radius: 50%;
            background: #ebf1ff;
            color: #1759dd;
            flex-shrink: 0;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .mobile-menu-btn {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 40px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }

        .mobile-menu-btn span {
            display: block;
            width: 18px;
            height: 2px;
            background: #333;
            margin: 2.5px 0;
            transition: all 0.3s ease;
            border-radius: 1px;
        }

        .mobile-menu-btn span:nth-child(n+3) {
            display: none !important;
        }

        .mobile-menu-btn.active span:nth-child(1) {
            transform: translateY(3.5px) rotate(45deg);
        }

        .mobile-menu-btn.active span:nth-child(2) {
            transform: translateY(-3.5px) rotate(-45deg);
        }

        /* 已废弃：mobile-top-actions 独立登录注册 */
        .mobile-top-actions,
        .mobile-auth-btn {
            display: none !important;
        }

        /* 用户下拉菜单样式 */
        .user-dropdown {
            position: relative;
            display: inline-block;
            margin-right: 10px;
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #ebf1ff;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1759dd;
            font-weight: 600;
            font-size: 14px;
            text-transform: uppercase;
        }

        .user-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            width: 250px;
            padding: 5px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1003;
            margin-top: 8px;
        }

        .user-dropdown-menu.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .user-dropdown-header {
            padding: 16px 12px 12px 12px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .user-dropdown-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #ebf1ff;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1759dd;
            font-weight: 600;
            font-size: 18px;
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .user-dropdown-info {
            flex: 1;
            min-width: 0;
            margin-top: 2px;
        }

        .user-dropdown-name-row {
            display: flex;
            align-items: center;
            margin-bottom: 4px;
        }

        .user-dropdown-name {
            font-weight: 500;
            font-size: 16px;
            color: #333;
            word-break: break-word;
            flex: 1;
            min-width: 0;
            line-height: 1.3;
        }

        .user-dropdown-copy-btn {
            width: 20px;
            height: 20px;
            border: none;
            background: transparent;
            cursor: pointer;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s ease;
            flex-shrink: 0;
            padding: 0;
        }



        .user-dropdown-copy-btn svg {
            width: 14px;
            height: 14px;
            fill: #666;
            transition: fill 0.2s ease;
        }



        .user-dropdown-id {
            font-size: 12px;
            color: #666;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 4px;
            transition: background-color 0.2s ease;
            display: inline-block;
            white-space: nowrap;
        }

        .user-dropdown-id:hover {
            background: rgba(26, 115, 232, 0.1);
            color: var(--mxp-brand, #5b8ff9);
        }

        .user-dropdown-status {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
        }

        .user-dropdown-info-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 4px;
        }

        .status-verified {
            color: #28a745;
        }

        .status-unverified {
            color: #ffc107;
        }

        .status-pending {
            color: #17a2b8;
        }

        .status-rejected {
            color: #dc3545;
        }

        .status-icon {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 2px;
            position: relative;
            flex-shrink: 0;
        }

        .status-verified .status-icon {
            background: #28a745;
        }

        .status-verified .status-icon::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            width: 3px;
            height: 6px;
            border: solid white;
            border-width: 0 1.5px 1.5px 0;
            transform: translate(-50%, -60%) rotate(45deg);
        }

        .status-unverified .status-icon {
            background: #ffc107;
        }

        .status-pending .status-icon {
            background: #17a2b8;
        }

        .status-rejected .status-icon {
            background: #dc3545;
        }

        .user-dropdown-item {
            display: block;
            padding: 10px 12px;
            color: #333;
            text-decoration: none;
            font-size: 14px;
            transition: background-color 0.2s ease;
            border-radius: 4px;
            margin: 2px 4px;
        }

        .user-dropdown-item:hover {
            background: #f6f8fa;
        }

        .user-dropdown-item:last-child {
            border-radius: 5px;
        }

        .user-dropdown-icon {
            width: 16px;
            height: 16px;
            opacity: 0.7;
            flex-shrink: 0;
        }

        .user-dropdown-divider {
            height: 0.5px;
            background: rgba(0, 0, 0, 0.05);
            margin: 6px auto;
            width: 90%;
        }

        .user-dropdown-logout {
            color: #42464e !important;
            border: 1px solid #dde2e9;
            border-radius: 4px;
            margin: 8px 4px 4px 4px;
            padding: 8px 12px;
            font-size: 13px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateY(0);
        }

        .user-dropdown-logout:hover {
            background: #f6f8fa !important;
            border-color: #1664ff !important;
            color: #1664ff !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(22, 100, 255, 0.15);
        }

        .user-dropdown-logout:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(22, 100, 255, 0.1);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-container {
                padding-left: 12px;
                padding-right: 8px;
                justify-content: space-between;
                gap: 8px;
            }

            .nav-container {
                height: 50px;
            }

            .nav-left .nav-scroll-container {
                display: none;
            }

            .nav-left {
                flex: 0 1 auto;
                min-width: 0;
            }

            .logo {
                display: flex;
                align-items: center;
                min-width: 0;
            }

            .logo img {
                max-height: 32px;
                width: auto;
                max-width: 108px;
            }

            .nav-menu {
                display: none;
            }

            .search-box,
            .search-input {
                display: none !important;
            }

            /* 移动端顶栏：右侧显示登录/注册和汉堡按钮 */
            .nav-tools-link {
                display: none !important;
            }

            .nav-right {
                display: flex;
                align-items: center;
                gap: 6px;
                margin-left: auto;
                flex: 0 0 auto;
                order: 2;
            }

            #loginBtn {
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                order: 1;
                height: 30px;
                padding: 0 4px;
                font-size: 13px;
                white-space: nowrap;
                flex-shrink: 0;
            }

            .register-btn {
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                order: 2;
                height: 30px;
                padding: 0 8px;
                font-size: 13px;
                white-space: nowrap;
                flex-shrink: 0;
            }

            .mobile-menu-btn {
                order: 3;
                flex-shrink: 0;
            }

            body.mxp-nav-logged-in #loginBtn,
            body.mxp-nav-logged-in .register-btn,
            #loginBtn.mxp-nav-auth-hidden,
            .register-btn.mxp-nav-auth-hidden {
                display: none !important;
            }

            .register-label-full {
                display: none;
            }

            .register-label-short {
                display: inline;
            }

            .mobile-menu-btn {
                display: flex !important;
            }

            .user-dropdown {
                display: none !important;
            }

            .nav-link {
                font-size: 14px;
            }

            .nav-dropdown-container {
                padding: 20px 16px;
                grid-template-columns: 1fr;
                gap: 20px;
                max-width: none;
                margin: 0;
                overflow: visible;
            }

            .nav-dropdown-intro {
                padding: 20px 16px;
                margin: 0 0 20px 0;
                border-radius: 8px;
                height: auto;
                word-wrap: break-word;
                word-break: break-word;
                overflow-wrap: break-word;
                white-space: normal;
                max-width: 100%;
            }





            .nav-dropdown-content {
                grid-template-columns: 1fr;
                gap: 20px;
                margin: 0;
            }

            .nav-dropdown {
                width: 100vw;
                max-height: 70vh;
            }
        }

        @media (max-width: 640px) {
            .nav-left .nav-scroll-container {
                display: none;
            }

            .nav-left {
                flex: 0 1 auto;
                min-width: 0;
            }

            .logo {
                display: flex;
                align-items: center;
                min-width: 0;
            }

            .logo img {
                max-height: 32px;
                width: auto;
                max-width: 108px;
            }

            .nav-menu {
                display: none;
            }

            .search-input {
                display: none;
            }

            .search-box {
                display: none;
            }

            .nav-tools-link {
                display: none !important;
            }

            #loginBtn {
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                order: 1;
                height: 30px;
                padding: 0 4px;
                font-size: 13px;
                white-space: nowrap;
                flex-shrink: 0;
            }

            .register-btn {
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                order: 2;
                height: 30px;
                padding: 0 8px;
                font-size: 13px;
                white-space: nowrap;
                flex-shrink: 0;
            }

            .mobile-menu-btn {
                order: 3;
                flex-shrink: 0;
            }

            body.mxp-nav-logged-in #loginBtn,
            body.mxp-nav-logged-in .register-btn,
            #loginBtn.mxp-nav-auth-hidden,
            .register-btn.mxp-nav-auth-hidden {
                display: none !important;
            }

            .nav-dropdown {
                display: none;
            }

            .nav-right {
                display: flex;
                align-items: center;
                gap: 6px;
                margin-left: auto;
                flex: 0 0 auto;
                order: 2;
            }

            /* 移动端隐藏用户下拉菜单 */
            .user-dropdown {
                display: none !important;
            }

            /* 移动端汉堡菜单 */
            .mobile-menu-btn {
                display: flex !important;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                width: 40px;
                height: 40px;
                background: none;
                border: none;
                cursor: pointer;
                padding: 0;
                flex-shrink: 0;
                -webkit-tap-highlight-color: transparent;
            }

            .mobile-menu-btn span {
                display: block;
                width: 18px;
                height: 2px;
                background: #333;
                margin: 2.5px 0;
                transition: all 0.3s ease;
                border-radius: 1px;
            }

            .mobile-menu-btn.active span:nth-child(1) {
                transform: translateY(3.5px) rotate(45deg);
            }

            .mobile-menu-btn.active span:nth-child(2) {
                transform: translateY(-3.5px) rotate(-45deg);
            }

            /* 移动端搜索按钮 */
            .mobile-search-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 30px;
                height: 30px;
                background: none;
                border: none;
                cursor: pointer;
                padding: 0;
            }

            .mobile-search-btn svg {
                width: 18px;
                height: 18px;
                stroke: #333;
            }

            /* 移动端侧边栏 */
            .mobile-sidebar {
                position: fixed;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100vh;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(20px);
                z-index: 1000;
                transition: left 0.3s ease;
                display: flex;
                flex-direction: column;
            }

            .mobile-sidebar-header {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                height: 50px;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(20px);
                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
                padding: 0;
                margin: 0;
                display: flex;
                align-items: center;
                gap: 0;
                z-index: 1001;
            }

            .mobile-header-search-box {
                flex: 1;
                height: 100%;
                position: relative;
                display: flex;
                align-items: center;
            }

            .mobile-header-search-icon {
                position: absolute;
                left: 16px;
                width: 16px;
                height: 16px;
                opacity: 0.6;
                pointer-events: none;
                z-index: 1;
            }

            .mobile-header-search {
                width: 100%;
                height: 100%;
                padding: 0 16px 0 44px;
                border: none;
                border-radius: 0;
                background: rgba(255, 255, 255, 0.8);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                font-size: 16px;
                outline: none;
                color: rgba(51, 51, 51, 0.8);
                font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
                transition: all 0.3s ease;
            }

            .mobile-header-search::placeholder {
                color: rgba(51, 51, 51, 0.8);
            }

            .mobile-header-search:focus {
                background: rgba(255, 255, 255, 1);
                border-color: transparent;
                box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
                color: #333;
            }

            .mobile-header-close {
                width: 60px;
                height: 100%;
                background: var(--mxp-brand, #5b8ff9);
                border: none;
                border-radius: 0;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                color: white;
                font-weight: 500;
                font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
                transition: all 0.3s ease;
            }

            .mobile-header-close:hover {
                background: #4080ff;
            }

            .mobile-header-close::before,
            .mobile-header-close::after {
                content: '';
                position: absolute;
                width: 16px;
                height: 2px;
                background: white;
                border-radius: 1px;
            }

            .mobile-header-close::before {
                transform: rotate(45deg);
            }

            .mobile-header-close::after {
                transform: rotate(-45deg);
            }

            .mobile-sidebar.active {
                left: 0;
            }

            .mobile-sidebar-auth {
                flex-shrink: 0;
                display: flex;
                gap: 10px;
                padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
                border-top: 1px solid rgba(0, 0, 0, 0.08);
                background: rgba(255, 255, 255, 0.98);
            }

            .mobile-sidebar-auth.is-hidden {
                display: none;
            }

            .mobile-sidebar-auth-btn {
                flex: 1;
                height: 42px;
                border-radius: 21px;
                font-size: 15px;
                font-weight: 500;
                cursor: pointer;
                border: none;
                text-align: center;
                line-height: 42px;
                text-decoration: none;
                -webkit-tap-highlight-color: transparent;
            }

            .mobile-sidebar-auth-btn--login {
                background: #f2f3f5;
                color: #1d2129;
            }

            .mobile-sidebar-auth-btn--register {
                background: var(--mxp-brand, #5b8ff9);
                color: #fff;
            }

            .mobile-sidebar-content {
                display: flex;
                width: 100%;
                height: 100%;
            }

            .mobile-nav-left {
                width: 30%;
                background: rgba(240, 244, 248, 0.8);
                padding: 70px 0 20px 0;
                border-right: 1px solid rgba(0, 0, 0, 0.1);
            }

            .mobile-nav-item {
                display: block;
                padding: 10px 15px;
                color: #333;
                text-decoration: none;
                font-size: 14px;
                font-weight: 600;
                font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
                text-align: right;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05);
                transition: all 0.3s ease;
                position: relative;
                transform: translateX(0);
            }

            .mobile-nav-item:hover,
            .mobile-nav-item.active {
                background: rgba(26, 115, 232, 0.1);
                color: var(--mxp-brand, #5b8ff9);
                transform: translateX(-5px);
            }

            .mobile-nav-item.active::after {
                content: '';
                position: absolute;
                right: 0;
                top: 0;
                width: 3px;
                height: 100%;
                background: var(--mxp-brand, #5b8ff9);
                transform: scaleY(1);
                transition: transform 0.3s ease;
            }

            .mobile-nav-item:not(.active)::after {
                content: '';
                position: absolute;
                right: 0;
                top: 0;
                width: 3px;
                height: 100%;
                background: var(--mxp-brand, #5b8ff9);
                transform: scaleY(0);
                transition: transform 0.3s ease;
            }

            .mobile-nav-right {
                flex: 1;
                padding: 70px 0 20px 0;
                overflow-y: auto;
                position: relative;
            }

            .mobile-nav-right::-webkit-scrollbar {
                width: 4px;
            }

            .mobile-nav-right::-webkit-scrollbar-track {
                background: transparent;
            }

            .mobile-nav-right::-webkit-scrollbar-thumb {
                background: rgba(0, 0, 0, 0.2);
                border-radius: 2px;
            }

            .mobile-content-section {
                display: block;
                opacity: 0;
                transform: translateY(20px);
                transition: all 0.3s ease;
                visibility: hidden;
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                padding: 0 10px;
                width: 100%;
                box-sizing: border-box;
            }

            .mobile-content-section.active {
                opacity: 1;
                transform: translateY(0);
                visibility: visible;
                position: static;
                padding: 0 10px;
                width: 100%;
                box-sizing: border-box;
            }



            .mobile-section-group {
                margin-bottom: 12px;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05);
                padding: 0;
            }

            .mobile-section-group h4 {
                font-size: 14px;
                font-weight: 600;
                color: #666;
                margin: 0;
                padding: 12px 20px;
                cursor: default;
                position: relative;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                justify-content: space-between;
                user-select: none;
            }

            .mobile-section-group h4:hover {
                color: var(--mxp-brand, #5b8ff9);
            }

            .mobile-section-group h4::after {
                display: none;
            }

            .mobile-section-group.expanded h4::after {
                display: none;
            }

            .mobile-section-content {
                max-height: none;
                overflow: visible;
                transition: none;
                padding: 0 0 12px 0;
            }

            .mobile-section-group.expanded .mobile-section-content {
                max-height: none;
                padding: 0 0 12px 0;
            }

            .mobile-section-item {
                display: block;
                padding: 8px 20px 8px 40px;
                color: #333;
                text-decoration: none;
                font-size: 14px;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05);
                transition: color 0.2s ease;
            }

            .mobile-section-item:hover {
                color: var(--mxp-brand, #5b8ff9);
            }

            .mobile-section-item-title {
                font-weight: 500;
            }

            /* 移动端搜索覆盖层 */
            .mobile-search-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(20px);
                z-index: 1001;
                transform: translateY(-100%);
                transition: transform 0.3s ease;
                padding: 80px 20px 20px 20px;
            }

            .mobile-search-overlay.active {
                transform: translateY(0);
            }

            .mobile-search-input {
                width: 100%;
                height: 50px;
                padding: 0 20px 0 50px;
                border: 2px solid rgba(26, 115, 232, 0.2);
                border-radius: 25px;
                background: rgba(255, 255, 255, 0.9);
                font-size: 16px;
                outline: none;
                position: relative;
            }

            .mobile-search-input:focus {
                border-color: var(--mxp-brand, #5b8ff9);
            }

            .mobile-search-icon {
                position: absolute;
                left: 18px;
                top: 50%;
                transform: translateY(-50%);
                width: 20px;
                height: 20px;
                opacity: 0.6;
            }

            .mobile-hot-searches {
                margin-top: 30px;
            }

            .mobile-hot-searches h3 {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                margin-bottom: 15px;
            }

            .mobile-hot-item {
                display: block;
                padding: 12px 0;
                color: #333;
                text-decoration: none;
                font-size: 15px;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            }

            .mobile-hot-item:hover {
                color: var(--mxp-brand, #5b8ff9);
            }


        }

        @media (min-width: 769px) {
            .mobile-menu-btn,
            .mobile-search-btn,
            .mobile-sidebar,
            .mobile-search-overlay {
                display: none !important;
            }

            .register-label-full {
                display: inline;
            }

            .register-label-short {
                display: none;
            }
        }

        /* 登录弹窗样式 */
        .login-modal {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            z-index: 10000;
            display: none;
            justify-content: center;
            align-items: flex-start !important;
            overflow-x: hidden;
            overflow-y: auto !important;
            padding: max(24px, 6vh) 0 24px;
            box-sizing: border-box;
            -webkit-overflow-scrolling: touch;
        }

        .login-modal.show {
            display: flex !important;
        }

        /* 极验/系统验证码需盖在首页登录弹窗之上，并适配首页弹窗尺寸 */
        #captcha-outer,
        [id^="captcha-outer-"] {
            z-index: 10050 !important;
        }

        #captcha-outer .captcha-content,
        [id^="captcha-outer-"] .captcha-content {
            width: min(360px, calc(100vw - 32px)) !important;
            box-sizing: border-box !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            margin: 0 !important;
            padding: 24px !important;
        }

        #captcha-outer .captcha-main,
        [id^="captcha-outer-"] .captcha-main {
            width: 100% !important;
            box-sizing: border-box !important;
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            padding-left: 0 !important;
        }

        #captcha-outer #captcha-input,
        [id^="captcha-outer-"] #captcha-input {
            flex: 1 1 auto !important;
            min-width: 0 !important;
            width: auto !important;
            box-sizing: border-box !important;
            padding: 0 10px !important;
            margin-right: 0 !important;
        }

        #captcha-outer #captcha-img,
        [id^="captcha-outer-"] #captcha-img {
            flex: 0 0 112px !important;
            width: 112px !important;
            max-width: 34% !important;
            object-fit: contain !important;
        }

        .login-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
        }

        .login-modal-content {
            position: relative;
            background: white;
            border-radius: 12px;
            width: min(480px, calc(100vw - 32px));
            max-width: calc(100vw - 32px);
            height: auto;
            box-sizing: border-box;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            animation: loginModalAppear 0.3s ease-out;
            margin: 20px;
        }

        /* 登录弹窗滚动条样式 */
        .login-modal-content::-webkit-scrollbar {
            width: 6px;
        }

        .login-modal-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 3px;
        }

        .login-modal-content::-webkit-scrollbar-thumb {
            background: rgba(91, 143, 249, 0.3);
            border-radius: 3px;
            transition: background 0.3s ease;
        }

        .login-modal-content::-webkit-scrollbar-thumb:hover {
            background: rgba(91, 143, 249, 0.5);
        }

        /* Firefox滚动条样式 */
        .login-modal-content {
            scrollbar-width: thin;
            scrollbar-color: rgba(91, 143, 249, 0.3) rgba(0, 0, 0, 0.05);
        }

        @keyframes loginModalAppear {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(20px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .login-modal-header {
            padding: 24px 28px 12px;
            position: relative;
        }

        .login-tabs {
            display: flex;
            width: 100%;
            position: relative;
        }

        .login-tabs::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50%;
            height: 3px;
            background: var(--mxp-brand, #5b8ff9);
            transition: left 0.3s ease;
        }

        .login-tabs.phone-active::after {
            left: 50%;
        }

        .login-tab {
            flex: 1;
            padding: 14px 16px;
            background: none;
            border: none;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            color: #666;
            transition: all 0.3s ease;
            position: relative;
            font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
            user-select: none;
        }

        .login-tab.active {
            color: var(--mxp-brand, #5b8ff9);
        }



        .login-modal-body {
            padding: 16px 28px 28px;
            position: relative;
            min-height: 0;
        }

        .login-loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 10;
            backdrop-filter: blur(2px);
            pointer-events: none;
        }

        .login-loading-overlay.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .login-loading-spinner {
            width: 24px;
            height: 24px;
            border: 2px solid rgba(91, 143, 249, 0.2);
            border-top: 2px solid var(--mxp-brand, #5b8ff9);
            border-radius: 50%;
            animation: loginSpin 1s linear infinite;
        }

        @keyframes loginSpin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .login-form {
            display: none;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
        }

        .login-form.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .login-form.loading {
            opacity: 0.5;
            pointer-events: none;
            filter: blur(1px);
        }

        .login-form-group {
            margin-bottom: 14px;
        }

        .login-code-group {
            display: flex;
            gap: 10px;
        }

        .login-code-group .login-input {
            flex: 1;
        }

        .login-input {
            width: 100%;
            padding: 12px 18px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 8px;
            font-size: 15px;
            font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
            outline: none;
            transition: all 0.3s ease;
            color: #333;
            background: white;
            user-select: text;
            box-sizing: border-box;
        }

        .login-input:focus {
            border-color: var(--mxp-brand, #5b8ff9);
            box-shadow: 0 0 0 3px rgba(91, 143, 249, 0.1);
        }

        .login-input::placeholder {
            color: #999;
        }

        .login-agreement {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 13px;
            color: #666;
            cursor: pointer;
            font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
            user-select: none;
            line-height: 1.5;
        }

        .login-agreement input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--mxp-brand, #5b8ff9);
            margin-top: 1px;
            flex-shrink: 0;
        }

        .login-agreement span {
            flex: 1;
        }

        .login-link {
            color: var(--mxp-brand, #5b8ff9);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .login-link:hover {
            color: #4080ff;
            text-decoration: underline;
        }

        .login-form-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }

        .login-footer-link {
            color: #666;
            text-decoration: none;
            font-size: 14px;
            font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
            transition: color 0.2s ease;
        }

        .login-footer-link:hover {
            color: var(--mxp-brand, #5b8ff9);
        }

        .login-submit-btn {
            width: 100%;
            padding: 13px;
            background: var(--mxp-brand, #5b8ff9);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
            user-select: none;
        }

        .login-submit-btn:hover {
            background: #4080ff;

        }

        .login-submit-btn:active {
            transform: translateY(0);
        }

        .login-submit-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .login-send-code-btn {
            padding: 12px 18px;
            background: var(--mxp-brand, #5b8ff9);
            color: #FFF;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            font-family: "思源黑", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
            user-select: none;
            flex-shrink: 0;
        }

        .login-send-code-btn:hover {
            background: #4080ff;
            border-color: #FFF;
        }

        .login-send-code-btn:disabled {
            background: #f5f5f5;
            color: #999;
            border-color: #ddd;
            cursor: not-allowed;
        }

        /* 响应式设计 */
        @media (max-width: 640px) {
            .login-modal {
                align-items: flex-start;
                padding: 16px 0;
                box-sizing: border-box;
                overflow-y: auto;
            }

            .login-modal-content {
                width: calc(100vw - 24px);
                max-width: calc(100vw - 24px);
                max-height: none;
                border-radius: 8px;
                margin: 0 auto;
            }

            .login-modal-header {
                padding: 12px 16px 4px;
            }

            .login-modal-body {
                padding: 12px 18px 20px;
                min-height: 0;
            }

            .login-tab {
                padding: 12px 14px;
                font-size: 15px;
            }

            .login-input {
                padding: 12px 16px;
                font-size: 16px;
            }

            .login-submit-btn {
                padding: 12px;
                font-size: 15px;
            }

            .login-send-code-btn {
                padding: 12px 16px;
                font-size: 13px;
            }

            .login-form-group {
                margin-bottom: 12px;
            }
        }

        @media (max-width: 480px) {
            .login-modal {
                padding: 10px 0;
            }

            .login-modal-content {
                width: calc(100vw - 12px);
                max-width: calc(100vw - 12px);
                margin: 0 auto;
            }

            .login-modal-header {
                padding: 8px 12px 4px;
            }

            .login-modal-body {
                padding: 12px 16px 18px;
                min-height: 0;
            }

            .login-tab {
                padding: 10px 12px;
                font-size: 14px;
            }

            .login-tabs::after {
                height: 2px;
            }

            .login-form-group {
                margin-bottom: 10px;
            }

            .login-input {
                padding: 11px 14px;
                font-size: 16px;
            }

            .login-submit-btn {
                padding: 11px;
                font-size: 15px;
            }

            .login-send-code-btn {
                padding: 11px 14px;
                font-size: 13px;
            }
        }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 首页顶栏：认证入口位于右侧操作区末端，菜单按钮仅移动端可见 */
body.mxp-home-page .navbar,
body.mxp-home-page .navbar:hover,
body.mxp-home-page .navbar.search-active {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #edf0f5;
}

body.mxp-home-page .nav-left {
  gap: 20px;
}

body.mxp-home-page .home-auth-actions {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  gap: 4px;
}

body.mxp-home-page .home-auth-actions .register-btn {
  height: 100%;
}

body.mxp-home-page .nav-right .mobile-menu-btn {
  display: none !important;
}

@media (max-width: 768px) {
  body.mxp-home-page .nav-container {
    gap: 6px;
  }

  body.mxp-home-page .nav-left {
    flex: 1 1 auto;
    gap: 6px;
    overflow: visible;
  }

  body.mxp-home-page .logo {
    flex: 1 1 auto;
    overflow: hidden;
  }

  body.mxp-home-page .logo img {
    max-width: min(108px, 27vw);
  }

  body.mxp-home-page .home-auth-actions {
    height: 30px;
    gap: 2px;
  }

  body.mxp-home-page .home-auth-actions #loginBtn {
    padding: 0 4px;
  }

  body.mxp-home-page .home-auth-actions .register-btn {
    height: 30px;
    padding: 0 8px;
  }

  body.mxp-home-page .nav-right {
    gap: 0;
    margin-left: 0;
  }

  body.mxp-home-page .nav-right .mobile-menu-btn {
    width: 36px;
    height: 36px;
  }

  body.mxp-home-page.mxp-nav-logged-in .home-auth-actions .user-dropdown {
    display: none !important;
  }
}

@media (max-width: 380px) {
  body.mxp-home-page .nav-container {
    padding-left: 8px;
    padding-right: 4px;
  }

  body.mxp-home-page .logo img {
    max-width: min(82px, 23vw);
  }
}

/* 首页移动端顶栏最终布局：菜单在前，认证入口在最右侧 */
@media (max-width: 768px) {
  body.mxp-home-page .nav-container,
  body.mxp-home-page .nav-right,
  body.mxp-home-page .home-auth-actions {
    flex-wrap: nowrap;
    align-items: center;
  }

  body.mxp-home-page .nav-left {
    min-width: 0;
  }

  body.mxp-home-page .logo {
    min-width: 0;
    flex: 0 1 auto;
  }

  body.mxp-home-page .logo img {
    width: auto;
    max-width: min(96px, 24vw);
  }

  body.mxp-home-page .nav-right {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
    gap: 2px;
    white-space: nowrap;
  }

  body.mxp-home-page .nav-right .mobile-menu-btn {
    display: flex !important;
    order: 1;
    flex: 0 0 36px;
    margin: 0;
  }

  body.mxp-home-page .home-auth-actions {
    order: 2;
    display: flex;
    flex: 0 1 auto;
    align-self: center;
    height: 30px;
    overflow: hidden;
    gap: 2px;
  }

  body.mxp-home-page .home-auth-actions #loginBtn,
  body.mxp-home-page .home-auth-actions .register-btn {
    height: 30px;
    min-width: 0;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  body.mxp-home-page .home-auth-actions #loginBtn {
    order: 1;
  }

  body.mxp-home-page .home-auth-actions .register-btn {
    order: 2;
  }
}

/* mod_TbHPR 导航融合层：保留现有动态菜单、登录逻辑与导航标语。 */
:root {
  --mxp-nav-height: 64px;
  --mxp-nav-blue: #1664ff;
  --mxp-nav-blue-dark: #0f53d6;
  --mxp-nav-text: #1f2329;
  --mxp-nav-muted: #646b76;
  --mxp-nav-border: #e4e8ee;
  --mxp-nav-soft: #f5f7fa;
}

.navbar,
body.mxp-home-page .navbar {
  height: var(--mxp-nav-height);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(218, 224, 232, 0.88);
  box-shadow: none;
  transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.navbar.is-scrolled,
body.mxp-home-page .navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--mxp-nav-border);
  box-shadow: 0 8px 24px rgba(20, 34, 55, 0.06);
}

.navbar:hover,
.navbar.search-active,
body.mxp-home-page .navbar:hover,
body.mxp-home-page .navbar.search-active {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--mxp-nav-border);
}

.navbar .nav-container,
body.mxp-home-page .nav-container {
  height: var(--mxp-nav-height);
  padding: 0;
  overflow: visible;
}

.navbar .nav-left,
body.mxp-home-page .nav-left {
  height: 100%;
  gap: 14px;
  overflow: visible;
}

.navbar .logo {
  height: 100%;
  padding: 0 16px;
  flex: 0 0 auto;
}

.navbar .logo img {
  width: auto;
  height: 32px;
  max-width: 180px;
}

.navbar .nav-scroll-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.navbar .nav-menu {
  height: 100%;
  width: 100%;
  min-width: 0;
  gap: 0;
  flex: 1 1 auto;
  flex-shrink: 1;
  justify-content: stretch;
  transform: none !important;
}

.navbar .nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  flex: 1 1 0;
}

.navbar .nav-link {
  height: 100%;
  width: 100%;
  padding: 0 12px;
  gap: 6px;
  justify-content: center;
  color: var(--mxp-nav-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: color 0.2s ease;
}

.navbar .nav-link::before {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  background: var(--mxp-nav-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.navbar .nav-item:hover .nav-link,
.navbar .nav-link:hover {
  color: var(--mxp-nav-blue);
}

.navbar .nav-item:hover .nav-link::before,
.navbar .nav-link:focus-visible::before {
  transform: scaleX(1);
}

.navbar .nav-link:focus,
.navbar .nav-plain-link:focus,
.navbar .nav-right-link:focus {
  outline: none;
}

.navbar .nav-link:focus-visible,
.navbar .nav-plain-link:focus-visible,
.navbar .nav-right-link:focus-visible,
.navbar .mobile-menu-btn:focus-visible {
  outline: 2px solid var(--mxp-nav-blue);
  outline-offset: -2px;
}

.navbar .nav-link::after {
  width: 5px;
  height: 5px;
  margin-top: -3px;
  opacity: 0.58;
}

.navbar .nav-scroll-btn {
  display: none !important;
}

.navbar .nav-scroll-btn::after {
  width: 6px;
  height: 6px;
  border-color: var(--mxp-nav-text);
}

.navbar .nav-right {
  height: 100%;
  gap: 0;
  flex: 0 0 auto;
}

.navbar .search-box {
  width: 244px;
  height: 40px;
  margin: 0 10px;
}

.navbar .search-icon {
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--mxp-nav-muted);
  opacity: 1;
}

.navbar .search-input {
  width: 244px;
  height: 40px;
  padding: 0 14px 0 42px;
  color: var(--mxp-nav-text);
  background: transparent;
  border: 1px solid #dce1e8;
  border-radius: 4px;
  box-shadow: none;
  transition: width 0.24s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.navbar .search-input:hover,
.navbar .search-input:focus {
  color: var(--mxp-nav-text);
  background: #fff;
  border-color: #b8c2d1;
  box-shadow: none;
}

.navbar .search-input:focus {
  border-color: var(--mxp-nav-blue);
}

.navbar .search-input.expanded {
  width: 320px;
}

.navbar .search-dropdown {
  top: calc(100% + 10px);
  width: 280px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mxp-nav-border);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(20, 34, 55, 0.12);
}

.navbar .search-box.expanded .search-dropdown.show {
  width: 320px;
}

.navbar .search-hot-item:hover,
.navbar .search-result-item:hover {
  color: var(--mxp-nav-blue);
  background: #f4f7fc;
}

.navbar .nav-plain-link,
.navbar .nav-right-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 12px;
  color: var(--mxp-nav-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0;
}

.navbar .nav-plain-link:hover,
.navbar .nav-right-link:hover {
  color: var(--mxp-nav-blue);
  background: #f4f7fc;
}

.navbar .home-auth-actions,
body.mxp-home-page .home-auth-actions {
  display: flex;
  align-items: center;
  align-self: stretch;
  height: 100%;
  gap: 0;
}

.navbar .register-btn,
body.mxp-home-page .home-auth-actions .register-btn {
  height: 100%;
  padding: 0 26px;
  color: #fff !important;
  background: var(--mxp-nav-blue);
  border-radius: 0;
}

.navbar .register-btn:hover,
body.mxp-home-page .home-auth-actions .register-btn:hover {
  color: #fff !important;
  background: var(--mxp-nav-blue-dark);
}

.navbar .user-dropdown {
  height: 100%;
  margin: 0 8px;
}

.navbar .user-avatar {
  width: 36px;
  height: 36px;
  margin-top: 14px;
  color: var(--mxp-nav-blue);
  background: #eef4ff;
  border: 1px solid #d9e6ff;
}

.navbar .user-dropdown-menu {
  top: calc(100% - 2px);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--mxp-nav-border);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(20, 34, 55, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.navbar .nav-dropdown {
  top: var(--mxp-nav-height);
  max-height: calc(100vh - var(--mxp-nav-height));
  background: #fff;
  border-top: 1px solid var(--mxp-nav-border);
  border-bottom: 1px solid var(--mxp-nav-border);
  box-shadow: 0 16px 30px -18px rgba(20, 34, 55, 0.24);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.navbar .nav-item:hover .nav-dropdown,
.navbar .nav-dropdown:hover,
.navbar .nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar .nav-dropdown-container {
  width: min(1440px, 100%);
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px clamp(24px, 4vw, 64px) 32px;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 44px);
  overflow: visible;
}

.navbar .nav-dropdown-intro {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 24px 22px;
  overflow: hidden;
  background: var(--mxp-nav-soft);
  border: 1px solid var(--mxp-nav-border);
  border-radius: 4px;
}

.navbar .nav-dropdown-intro::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 3px;
  background: var(--mxp-nav-blue);
}

.navbar .nav-dropdown-intro::after {
  display: none;
}

.navbar .nav-dropdown-intro h3 {
  margin: 0 0 14px;
  color: var(--mxp-nav-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.navbar .nav-dropdown-intro p {
  margin: 0 0 9px;
  color: var(--mxp-nav-muted);
  font-size: 13px;
  line-height: 1.7;
}

.navbar .nav-dropdown-intro p:last-child {
  margin-bottom: 0;
}

.navbar .nav-dropdown-content {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px clamp(22px, 3vw, 40px);
  margin: 0;
}

.navbar .nav-dropdown-title {
  position: relative;
  margin: 0 0 5px;
  padding: 0 0 12px;
  color: var(--mxp-nav-text);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--mxp-nav-border);
}

.navbar .nav-dropdown-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--mxp-nav-blue);
}

.navbar .nav-dropdown-item {
  margin: 0 -10px;
  padding: 10px;
  color: var(--mxp-nav-text);
  border: 1px solid transparent;
  border-radius: 4px;
}

.navbar .nav-dropdown-item:hover {
  color: var(--mxp-nav-blue);
  background: #f5f8ff;
  border-color: #e2eaff;
}

.navbar .nav-dropdown-item-title {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.navbar .nav-dropdown-item-desc {
  color: #747b86;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1360px) and (min-width: 769px) {
  .navbar .logo {
    padding: 0 12px;
  }

  .navbar .logo img {
    max-width: 150px;
  }

  .navbar .nav-link {
    padding: 0 clamp(5px, 0.7vw, 10px);
  }

  .navbar .search-box,
  .navbar .search-input {
    width: 190px;
  }

  .navbar .nav-plain-link,
  .navbar .nav-right-link {
    padding: 0 10px;
  }

  .navbar .register-btn,
  body.mxp-home-page .home-auth-actions .register-btn {
    padding: 0 20px;
  }
}

@media (max-width: 1180px) and (min-width: 769px) {
  .navbar .search-box {
    display: none;
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  .navbar .nav-tools-link {
    display: none;
  }

  .navbar .logo {
    padding: 0 8px;
  }

  .navbar .logo img {
    max-width: 120px;
  }

  .navbar .nav-left {
    gap: 6px;
  }

  .navbar .nav-link {
    padding: 0 4px;
    gap: 4px;
    font-size: 13px;
  }

  .navbar .register-btn,
  body.mxp-home-page .home-auth-actions .register-btn {
    padding: 0 14px;
  }
}

@media (max-width: 820px) and (min-width: 769px) {
  .navbar .nav-link {
    padding: 0 2px;
    gap: 0;
    font-size: 12px;
  }

  .navbar .nav-link::after {
    display: none;
  }

  .navbar .logo img {
    max-width: 100px;
  }
}

@media (min-width: 769px) {
  .navbar .mobile-menu-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --mxp-nav-height: 56px;
  }

  .navbar,
  body.mxp-home-page .navbar,
  .navbar:hover,
  .navbar.search-active,
  body.mxp-home-page .navbar:hover,
  body.mxp-home-page .navbar.search-active {
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .navbar .nav-container,
  body.mxp-home-page .nav-container {
    height: var(--mxp-nav-height);
    padding: 0 8px 0 12px;
    gap: 6px;
  }

  .navbar .nav-left,
  body.mxp-home-page .nav-left {
    flex: 1 1 auto;
    height: 100%;
    min-width: 0;
    gap: 0;
    overflow: hidden;
  }

  .navbar .logo,
  body.mxp-home-page .logo {
    min-width: 0;
    padding: 0;
    overflow: hidden;
  }

  .navbar .logo img,
  body.mxp-home-page .logo img {
    width: auto;
    height: 30px;
    max-width: min(118px, 29vw);
  }

  .navbar .nav-right,
  body.mxp-home-page .nav-right {
    height: 100%;
    margin-left: auto;
    gap: 2px;
  }

  .navbar .home-auth-actions,
  body.mxp-home-page .home-auth-actions {
    height: 32px;
    gap: 2px;
    align-self: center;
  }

  .navbar #loginBtn,
  body.mxp-home-page .home-auth-actions #loginBtn,
  .navbar .register-btn,
  body.mxp-home-page .home-auth-actions .register-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    border-radius: 4px;
  }

  .navbar #loginBtn,
  body.mxp-home-page .home-auth-actions #loginBtn {
    background: transparent;
  }

  .navbar .mobile-menu-btn,
  body.mxp-home-page .nav-right .mobile-menu-btn {
    display: flex !important;
    order: 1;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .navbar .home-auth-actions,
  body.mxp-home-page .home-auth-actions {
    order: 2;
  }

  .mobile-sidebar {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mobile-sidebar-header {
    position: absolute;
    height: var(--mxp-nav-height);
    background: #fff;
    border-bottom-color: var(--mxp-nav-border);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mobile-header-search {
    color: var(--mxp-nav-text);
    background: #fff;
  }

  .mobile-header-search:focus {
    background: #fff;
    box-shadow: inset 0 -2px 0 var(--mxp-nav-blue);
  }

  .mobile-header-close {
    width: 56px;
    background: var(--mxp-nav-blue);
  }

  .mobile-header-close:hover {
    background: var(--mxp-nav-blue-dark);
  }

  .mobile-nav-left {
    width: 34%;
    padding: 72px 0 20px;
    background: var(--mxp-nav-soft);
    border-right: 1px solid var(--mxp-nav-border);
  }

  .mobile-nav-item {
    padding: 12px 14px;
    color: var(--mxp-nav-text);
    text-align: left;
    border-bottom: 1px solid #e8ebef;
    transform: none;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: var(--mxp-nav-blue);
    background: #fff;
    transform: none;
  }

  .mobile-nav-item.active::after,
  .mobile-nav-item:not(.active)::after {
    right: auto;
    left: 0;
    background: var(--mxp-nav-blue);
  }

  .mobile-nav-right {
    padding: 72px 0 20px;
    background: #fff;
  }

  .mobile-content-section,
  .mobile-content-section.active {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-section-group {
    margin-bottom: 8px;
    border-bottom-color: var(--mxp-nav-border);
  }

  .mobile-section-group h4 {
    padding: 12px 8px;
    color: #565d68;
  }

  .mobile-section-item {
    padding: 9px 8px 9px 20px;
    color: var(--mxp-nav-text);
    border-bottom-color: #edf0f3;
  }

  .mobile-section-item:hover,
  .mobile-section-group h4:hover {
    color: var(--mxp-nav-blue);
  }

  .mobile-sidebar-auth {
    background: #fff;
    border-top-color: var(--mxp-nav-border);
  }

  .mobile-sidebar-auth-btn {
    border-radius: 4px;
  }

  .mobile-sidebar-auth-btn--register {
    background: var(--mxp-nav-blue);
  }
}

@media (max-width: 380px) {
  .navbar .nav-container,
  body.mxp-home-page .nav-container {
    padding-right: 4px;
    padding-left: 8px;
  }

  .navbar .logo img,
  body.mxp-home-page .logo img {
    max-width: min(88px, 23vw);
  }

  .navbar #loginBtn,
  body.mxp-home-page .home-auth-actions #loginBtn,
  .navbar .register-btn,
  body.mxp-home-page .home-auth-actions .register-btn {
    padding: 0 6px;
  }
}

@supports not (backdrop-filter: blur(20px)) {
  .navbar,
  body.mxp-home-page .navbar {
    background: rgba(255, 255, 255, 0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar .nav-dropdown,
  .navbar .nav-link::before {
    transition: none;
  }
}
