/**
 * 手机 H5 视觉主题（仅 ≤768px）
 * 白底浅色风格
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+KuaiLe&display=swap');

@media (max-width: 768px) {
    :root {
        --m-bg: #ffffff;
        --m-panel: #ffffff;
        --m-panel-soft: #ffffff;
        --m-line: rgba(20, 40, 60, 0.1);
        --m-text: #1a2433;
        --m-muted: #6b7c90;
        --m-amber: #e8941f;
        --m-teal: #1fa89a;
        --m-teal-deep: #178f83;
        --primary-color: #e8941f;
        --secondary-color: #1fa89a;
        --bg-color: #ffffff;
        --text-color: #1a2433;
        --text-muted: #6b7c90;
        --border-color: rgba(20, 40, 60, 0.1);
        --card-bg: #ffffff;
    }

    body {
        font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
        background: #ffffff !important;
        background-attachment: fixed;
        color: var(--m-text);
    }

    /* 彻底去掉 APP 下载广告 */
    .ad-app-download-mobile {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    /* ===== 顶栏 Logo + 搜索 ===== */
    .header-pin {
        position: relative;
        top: auto;
        z-index: auto;
        background: transparent;
    }

    .header-center {
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        position: relative;
        top: auto;
        z-index: auto;
        width: 100% !important;
        max-width: 100% !important;
        left: 0;
        right: 0;
        margin: 0 !important;
    }

    .header-center::before {
        display: none !important;
    }

    .header-center .header-c {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px 12px !important;
        padding: 12px 12px 2px !important;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
    }

    .logo {
        justify-content: center;
        width: 100%;
        flex: 1 1 100%;
        text-align: center;
        margin: 0;
    }

    .logo-text {
        font-family: "ZCOOL KuaiLe", "Noto Sans SC", cursive !important;
        font-size: 26px !important;
        font-weight: 400 !important;
        background: linear-gradient(120deg, #e8941f 0%, #d97706 40%, #1fa89a 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        letter-spacing: 0.04em;
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .logo-sub,
    .logo-com {
        display: none !important;
    }

    .header-center-right {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        background: #f4f7fb;
        border: 1px solid var(--m-line);
        border-radius: 999px;
        padding: 3px 3px 3px 14px;
        gap: 0;
        box-sizing: border-box;
    }

    .search-input {
        border: none !important;
        background: transparent !important;
        color: var(--m-text) !important;
        padding: 11px 8px !important;
        font-size: 14px !important;
    }

    .search-input::placeholder {
        color: var(--m-muted);
    }

    .search-btn {
        background: #ff5b2d !important;
        color: #ffffff !important;
        border-radius: 999px !important;
        padding: 0 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 0 !important;
        font-weight: 700 !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(255, 91, 45, 0.28);
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .search-btn .search-icon {
        display: block;
        width: 18px;
        height: 18px;
    }

    /* ===== 分类：两行铺开，圆角边框不靠边 ===== */
    .mobile-pages .mobile-category-nav,
    #mobile-category-nav.mobile-category-nav,
    .mobile-category-nav {
        display: grid !important;
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        overflow: visible !important;
        background: #ffffff !important;
        border: 1px solid var(--m-line) !important;
        border-radius: 11px !important;
        box-shadow: 0 8px 28px rgba(20, 40, 60, 0.06) !important;
        padding: 8px !important;
        gap: 6px !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
        margin: 10px 12px 0 !important;
    }

    .mobile-pages .mobile-cat-btn,
    #mobile-category-nav .mobile-cat-btn,
    .mobile-cat-btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: unset !important;
        background: #f4f7fb !important;
        border: none !important;
        color: #4a5a6e !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        min-height: 32px !important;
        height: auto !important;
        padding: 6px 0 !important;
        font-weight: 600;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    .mobile-pages .mobile-cat-btn.active,
    #mobile-category-nav .mobile-cat-btn.active,
    .mobile-cat-btn.active {
        background: #ff5b2d !important;
        color: #ffffff !important;
        border-color: transparent !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 14px rgba(255, 91, 45, 0.28);
    }

    /* 首页内容铺满屏宽，避免贴左 */
    .mobile-pages,
    #mobile-page-home.mobile-page,
    #mobile-page-home .main-content,
    #mobile-page-home .content-layout,
    #mobile-page-home .center-content,
    #mobile-page-home .games-main-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .header-center,
    .header-center .header-c {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 首页只留出底部导航的高度，不再额外垫一大块空白 */
    .mobile-page {
        min-height: 0 !important;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .mobile-page .main-content {
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }

    /* ===== 移动端页面容器 ===== */
    .mobile-pages {
        background: transparent !important;
    }

    .mobile-page .main-content,
    .mobile-page .content-layout,
    .mobile-page .center-content,
    .mobile-page .games-main-container,
    .mobile-page .games-main-content {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .mobile-page .games-main-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .mobile-page .games-main-content {
        display: block !important;
        margin: 10px 12px 16px !important;
        background: #ffffff !important;
        border: 1px solid var(--m-line) !important;
        border-radius: 11px !important;
        overflow: hidden;
        box-shadow: 0 8px 28px rgba(20, 40, 60, 0.06) !important;
        width: calc(100% - 24px) !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .mobile-page .games-tabs {
        background: transparent !important;
        border-bottom: 1px solid var(--m-line) !important;
        padding: 12px 12px 10px !important;
        margin: 0 !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .mobile-page .games-tab-btn {
        background: #f4f7fb !important;
        color: var(--m-muted) !important;
        border: 1px solid transparent !important;
        border-bottom: none !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
        font-weight: 600 !important;
    }

    .mobile-page .games-tab-btn.active {
        color: #12304a !important;
        background: #7ec8ff !important;
        border-color: transparent !important;
        box-shadow: 0 4px 12px rgba(80, 160, 220, 0.28);
    }

    .mobile-page .games-count {
        color: var(--m-muted) !important;
        font-size: 11px !important;
        padding: 6px 4px !important;
        white-space: nowrap;
    }

    .mobile-page .games-count span {
        color: var(--m-teal) !important;
        font-weight: 700;
    }

    /* 游戏网格：4 列铺满卡片宽度 */
    .mobile-page .game-grid,
    .mobile-page #all-games,
    .mobile-page .game-grid.mobile-limited {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        min-width: 0 !important;
        background: transparent !important;
        padding: 12px 10px 10px !important;
        gap: 12px 8px !important;
        justify-items: stretch !important;
        justify-content: stretch !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-page .game-card {
        background: transparent !important;
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        align-items: stretch !important;
    }

    .mobile-page .game-icon {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        border-radius: 18px !important;
        background-color: #eef2f7 !important;
        box-shadow: 0 6px 14px rgba(20, 40, 60, 0.1);
        border: 1px solid rgba(20, 40, 60, 0.06);
        margin-bottom: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transition: transform 0.2s ease;
    }

    .mobile-page .game-title,
    .mobile-page .game-name {
        max-width: none !important;
        width: 100% !important;
    }

    .mobile-page .game-card:active .game-icon {
        transform: scale(0.96);
    }

    .mobile-page .game-title,
    .mobile-page .game-name {
        color: #2a3648 !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        height: auto !important;
        min-height: 28px;
        font-weight: 500;
        padding: 0 2px;
    }

    .mobile-page .hot-tag,
    .mobile-page .new-tag {
        font-size: 9px !important;
        padding: 2px 5px !important;
        border-radius: 6px !important;
    }

    .mobile-page .pagination {
        background: transparent !important;
        padding: 8px 12px 12px !important;
        gap: 8px !important;
    }

    .mobile-page .page-btn,
    .mobile-page .pagination button {
        background: #ffffff !important;
        color: #4a5a6e !important;
        border: 1px solid var(--m-line) !important;
        border-radius: 12px !important;
        min-width: 36px !important;
        height: 36px !important;
        font-weight: 600;
    }

    .mobile-page .page-btn.active,
    .mobile-page .pagination .active,
    .mobile-page .pagination button.active {
        background: linear-gradient(135deg, var(--m-amber), #e08a1a) !important;
        color: #1a1206 !important;
        border-color: transparent !important;
        font-weight: 800;
        box-shadow: 0 4px 12px rgba(240, 169, 59, 0.28);
    }

    /* ===== 底部导航 ===== */
    .bottom-nav {
        background: rgba(255, 255, 255, 0.96) !important;
        border-top: 1px solid var(--m-line) !important;
        box-shadow: 0 -6px 20px rgba(20, 40, 60, 0.08) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .bottom-nav .nav-item {
        color: var(--m-muted) !important;
        background: transparent !important;
        border-radius: 14px !important;
        margin: 2px 4px !important;
    }

    .bottom-nav .nav-item::before {
        background: linear-gradient(90deg, var(--m-amber), var(--m-teal)) !important;
        border-radius: 0 0 4px 4px;
    }

    .bottom-nav .nav-item.active {
        color: var(--m-amber) !important;
        background: rgba(240, 169, 59, 0.08) !important;
    }

    .bottom-nav .nav-item.active .nav-text {
        color: var(--m-amber) !important;
    }

    .bottom-nav .nav-item.active .nav-icon {
        filter: drop-shadow(0 2px 6px rgba(240, 169, 59, 0.35));
    }

    .bottom-nav .nav-item:not(.active) {
        color: var(--m-muted) !important;
    }

    .bottom-nav .nav-item:active {
        background: rgba(62, 207, 191, 0.08) !important;
    }

    /* ===== 聊天 / 我的 页面基础适配 ===== */
    .mobile-chat-page,
    .mobile-user-page {
        background: transparent !important;
        color: var(--m-text);
        min-height: calc(100vh - 120px);
        padding-bottom: 80px;
    }

    .mobile-chat-header,
    .mobile-user-page .user-header,
    .mobile-chat-content,
    .mobile-user-page .user-card {
        background: var(--m-panel-soft) !important;
        border: 1px solid var(--m-line);
        color: var(--m-text) !important;
    }

    .mobile-chat-header {
        margin: 10px 12px 0;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        padding: 14px 16px;
    }

    .mobile-chat-header h3,
    .mobile-user-page h3,
    .mobile-user-page h4,
    .mobile-user-page h5 {
        color: var(--m-text) !important;
    }

    .mobile-chat-content {
        margin: 0 12px;
        border-radius: 0 0 16px 16px;
    }

    .mobile-chat-input,
    .mobile-user-page input,
    .mobile-user-page textarea {
        background: #f4f7fb !important;
        border: 1px solid var(--m-line) !important;
        color: var(--m-text) !important;
        border-radius: 10px !important;
    }

    .mobile-chat-send-btn,
    .mobile-user-page .btn-primary {
        background: linear-gradient(135deg, var(--m-teal), var(--m-teal-deep)) !important;
        color: #06201c !important;
        border: none !important;
        font-weight: 700;
        border-radius: 10px !important;
    }

    /* ===== 登录 / 注册 / 个人中心 ===== */
    body.mobile-user-active .mobile-user-page {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* 未登录：登录卡垂直居中 */
    body.mobile-user-active .mobile-user-page:has(.mobile-auth-container) {
        justify-content: center !important;
        align-items: center !important;
    }

    .mobile-auth-container {
        width: 100% !important;
        max-width: none !important;
        padding: 18px 18px calc(72px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: calc(100vh - 8px) !important;
        min-height: calc(100dvh - 8px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    .mobile-auth-card {
        width: min(100%, 400px) !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        align-self: center !important;
        background:
            radial-gradient(420px 180px at 10% 0%, rgba(31, 168, 154, 0.1), transparent 55%),
            radial-gradient(360px 160px at 100% 0%, rgba(232, 148, 31, 0.1), transparent 50%),
            #ffffff;
        border: 1px solid var(--m-line);
        border-radius: 22px;
        box-shadow: 0 12px 32px rgba(20, 40, 60, 0.1);
        overflow: hidden;
        padding: 22px 18px 24px;
        box-sizing: border-box;
        animation: mAuthIn 0.4s ease both;
    }

    .mobile-app-download {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 16px;
        min-height: 48px;
        border-radius: 14px;
        background: #f4f7fb;
        border: 1px solid var(--m-line);
        color: var(--m-text);
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }

    @keyframes mAuthIn {
        from {
            opacity: 0;
            transform: translateY(14px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-auth-brand {
        text-align: center;
        margin-bottom: 18px;
        padding: 4px 8px 6px;
    }

    .mobile-auth-brand-title {
        font-family: "ZCOOL KuaiLe", "Noto Sans SC", cursive;
        font-size: 34px;
        letter-spacing: 0.04em;
        background: linear-gradient(120deg, #e8941f 0%, #d97706 40%, #1fa89a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .mobile-auth-brand-desc {
        color: var(--m-muted);
        font-size: 13px;
        letter-spacing: 0.02em;
    }

    .mobile-auth-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 6px !important;
        background: #f4f7fb !important;
        border: 1px solid var(--m-line) !important;
        border-radius: 14px !important;
        padding: 5px !important;
        margin-bottom: 20px !important;
        border-bottom: none !important;
    }

    .mobile-auth-tab {
        background: transparent !important;
        color: var(--m-muted) !important;
        border: none !important;
        border-radius: 10px !important;
        padding: 12px 10px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        box-shadow: none !important;
        transition: all 0.25s ease;
    }

    .mobile-auth-tab.active {
        background: #ff5b2d !important;
        color: #ffffff !important;
        box-shadow: 0 6px 16px rgba(255, 91, 45, 0.28) !important;
    }

    .mobile-auth-form {
        background: transparent !important;
        padding: 4px 2px 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .mobile-auth-form .form-group {
        margin-bottom: 16px !important;
    }

    .mobile-auth-form .form-group label {
        color: #3a4a5c !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
        letter-spacing: 0.02em;
    }

    .mobile-auth-form .form-group input {
        width: 100%;
        background: #f4f7fb !important;
        border: 1px solid var(--m-line) !important;
        color: var(--m-text) !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        box-shadow: none !important;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    }

    .mobile-auth-form .form-group input::placeholder {
        color: #8a97a8 !important;
    }

    .mobile-auth-form .form-group input:focus {
        outline: none !important;
        border-color: rgba(31, 168, 154, 0.55) !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 3px rgba(31, 168, 154, 0.14) !important;
    }

    .mobile-auth-form .form-hint {
        color: var(--m-muted) !important;
        margin-top: 6px !important;
    }

    .mobile-auth-form .checkbox-label {
        display: flex !important;
        align-items: center;
        gap: 8px;
        color: var(--m-muted) !important;
        font-size: 13px !important;
        cursor: pointer;
        user-select: none;
    }

    .mobile-auth-form .checkbox-label input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        padding: 0 !important;
        accent-color: var(--m-teal);
        flex-shrink: 0;
    }

    .mobile-auth-form .checkbox-label span {
        color: #5a6a7c !important;
        line-height: 1.4;
    }

    .mobile-auth-form .error-message {
        background: rgba(220, 60, 60, 0.08) !important;
        color: #c0392b !important;
        border: 1px solid rgba(220, 60, 60, 0.22);
        border-radius: 10px !important;
    }

    .mobile-auth-form .form-actions {
        margin-top: 8px !important;
    }

    .mobile-auth-form .btn-primary {
        width: 100%;
        padding: 15px 16px !important;
        background: #ff5b2d !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 14px !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        letter-spacing: 0.08em;
        box-shadow: 0 10px 24px rgba(255, 91, 45, 0.28) !important;
    }

    .mobile-auth-form .btn-primary:active {
        transform: scale(0.98);
        filter: brightness(0.96);
    }

    /* 已登录「我的」：上下左右铺满可视区 */
    body.mobile-user-active .mobile-user-page:has(.mp-profile-shell) {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .mp-profile-shell {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        animation: mAuthIn 0.35s ease both;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .mp-profile-card {
        width: 100% !important;
        max-width: none !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        background:
            radial-gradient(520px 220px at 8% 0%, rgba(31, 168, 154, 0.08), transparent 55%),
            radial-gradient(440px 200px at 100% 0%, rgba(232, 148, 31, 0.08), transparent 50%),
            #ffffff;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .mobile-user-page .mp-profile-header {
        background: transparent !important;
        padding: 18px 14px 10px !important;
        position: relative;
        flex: 0 0 auto !important;
    }

    .mp-profile-kicker {
        text-align: center;
        font-family: "ZCOOL KuaiLe", "Noto Sans SC", cursive;
        font-size: 15px;
        letter-spacing: 0.06em;
        background: linear-gradient(120deg, #e8941f 0%, #d97706 40%, #1fa89a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 4px;
    }

    .mobile-user-page .mp-profile-title {
        text-align: center;
        color: var(--m-muted) !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        letter-spacing: 0.12em;
        margin-bottom: 12px !important;
    }

    .mobile-user-page .mp-profile-user-row {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        border-radius: 16px;
        background: #f4f7fb;
        border: 1px solid var(--m-line);
    }

    .mobile-user-page .mp-profile-avatar {
        width: 64px !important;
        height: 64px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(62, 207, 191, 0.55) !important;
        box-shadow: 0 0 0 4px rgba(240, 169, 59, 0.12), 0 8px 20px rgba(0, 0, 0, 0.28) !important;
        object-fit: cover;
        flex-shrink: 0;
    }

    .mobile-user-page .mp-profile-avatar-placeholder {
        background: linear-gradient(135deg, var(--m-amber), var(--m-teal)) !important;
        color: #102018 !important;
        font-size: 24px !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .mobile-user-page .mp-profile-nickname {
        color: var(--m-text) !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
    }

    .mobile-user-page .mp-profile-username {
        color: var(--m-muted) !important;
        font-size: 13px !important;
    }

    .mobile-user-page .mp-menu-list {
        padding: 6px 14px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        gap: 8px !important;
        justify-content: stretch !important;
    }

    .mobile-user-page .mp-menu-item {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex: 1 1 0 !important;
        min-height: 52px !important;
        background: #f4f7fb !important;
        border: 1px solid var(--m-line) !important;
        border-radius: 14px !important;
        padding: 0 14px !important;
        margin: 0 !important;
        box-shadow: none !important;
        transition: background 0.15s, border-color 0.15s, transform 0.15s;
    }

    .mobile-user-page .mp-menu-item:active {
        background: rgba(62, 207, 191, 0.1) !important;
        border-color: rgba(62, 207, 191, 0.28) !important;
        transform: scale(0.985);
    }

    .mobile-user-page .mp-menu-item-danger:active {
        background: rgba(240, 100, 80, 0.1) !important;
        border-color: rgba(240, 100, 80, 0.28) !important;
    }

    .mobile-user-page .mp-menu-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 11px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 0 !important;
        position: relative;
    }

    .mobile-user-page .mp-menu-icon::before {
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        color: #102018;
    }

    .mobile-user-page .mi-profile {
        background: linear-gradient(135deg, #f0a93b, #e08a1a);
    }
    .mobile-user-page .mi-profile::before { content: "资"; }

    .mobile-user-page .mi-password {
        background: linear-gradient(135deg, #3ecfbf, #1fa89a);
    }
    .mobile-user-page .mi-password::before { content: "密"; }

    .mobile-user-page .mi-avatar {
        background: linear-gradient(135deg, #6ec8ff, #3a8fd6);
    }
    .mobile-user-page .mi-avatar::before { content: "头"; }

    .mobile-user-page .mi-games {
        background: linear-gradient(135deg, #f0a93b, #3ecfbf);
    }
    .mobile-user-page .mi-games::before { content: "游"; }

    .mobile-user-page .mi-cache {
        background: linear-gradient(135deg, #8b9bb0, #5f7088);
    }
    .mobile-user-page .mi-cache::before { content: "存"; color: #e8eef6; }

    .mobile-user-page .mi-app {
        background: linear-gradient(135deg, #6ec8ff, #3a8fd6);
    }
    .mobile-user-page .mi-app::before { content: "下"; color: #f4fbff; }

    .mobile-user-page .mi-logout {
        background: linear-gradient(135deg, #e8795a, #c44d3a);
    }
    .mobile-user-page .mi-logout::before { content: "退"; color: #fff6f2; }

    .mobile-user-page .mp-menu-label {
        flex: 1;
        color: var(--m-text) !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em;
    }

    .mobile-user-page .mp-menu-item-danger .mp-menu-label {
        color: #c44d3a !important;
    }

    .mobile-user-page .mp-menu-arrow {
        color: var(--m-muted) !important;
        font-size: 22px !important;
        opacity: 0.7;
    }

    /* 子页面 */
    .mobile-user-page .mp-subpage {
        min-height: 100% !important;
        background: transparent !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px 14px calc(88px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .mobile-user-page .mp-subpage-header {
        background: var(--m-panel-soft) !important;
        border: 1px solid var(--m-line) !important;
        border-radius: 16px !important;
        padding: 12px 14px !important;
        margin-bottom: 12px;
        border-bottom: none !important;
    }

    .mobile-user-page .mp-subpage-back {
        color: var(--m-teal) !important;
        font-weight: 700 !important;
    }

    .mobile-user-page .mp-subpage-title {
        color: var(--m-text) !important;
        font-weight: 700 !important;
    }

    .mobile-user-page .mp-subpage-body {
        background: var(--m-panel-soft) !important;
        border: 1px solid var(--m-line) !important;
        border-radius: 18px !important;
        padding: 16px 14px !important;
        color: var(--m-text) !important;
    }

    .mobile-user-page .mp-subpage-body .form-group label,
    .mobile-user-page .mp-subpage-body h4,
    .mobile-user-page .mp-subpage-body h5 {
        color: var(--m-text) !important;
    }

    .mobile-user-page .mp-subpage-body .btn-primary {
        background: linear-gradient(135deg, var(--m-amber) 0%, #e08a1a 45%, var(--m-teal) 140%) !important;
        color: #1a1206 !important;
        border: none !important;
        border-radius: 12px !important;
        font-weight: 800 !important;
    }

    .mobile-user-page .user-center-content,
    .mobile-user-page .tab-content {
        background: transparent !important;
        color: var(--m-text) !important;
    }

    /* 页脚（若移动端显示） */
    .site-footer {
        background: transparent !important;
        margin-bottom: 70px;
    }

    .footer-content {
        clip-path: none !important;
        -webkit-clip-path: none !important;
        background: var(--m-panel-soft) !important;
        border: 1px solid var(--m-line);
        border-radius: 16px;
        margin: 12px;
        width: auto !important;
        max-width: none !important;
        padding: 20px 14px !important;
    }

    .footer-links a,
    .footer-info p,
    .footer-tip {
        color: var(--m-muted) !important;
    }

    .footer-link-active {
        color: var(--m-teal) !important;
    }

    /* 弹窗：全屏遮罩 + 内容水平垂直居中 */
    .modal {
        width: 100% !important;
        max-width: none !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal.active {
        display: flex !important;
    }

    .modal-content {
        background: var(--m-panel) !important;
        border: 1px solid var(--m-line) !important;
        border-radius: 16px !important;
        color: var(--m-text) !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .modal-header {
        border-bottom-color: var(--m-line) !important;
    }

    .modal-header h3,
    .form-group label {
        color: var(--m-text) !important;
    }

    .form-group input,
    .modal input[type="text"],
    .modal input[type="password"] {
        background: #f4f7fb !important;
        border: 1px solid var(--m-line) !important;
        color: var(--m-text) !important;
        border-radius: 10px !important;
    }

    /* 覆盖 styles / inapp 深色底，统一白底 */
    .mobile-user-page,
    body.mobile-user-active .mobile-user-page,
    body.inapp .mobile-user-page,
    body.inapp,
    body.inapp .mobile-page,
    body.inapp .header-center,
    body.inapp .mobile-pages,
    .mobile-pages,
    .mobile-page {
        background: #ffffff !important;
    }

    body.inapp .logo-text {
        color: transparent !important;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--m-amber), #e08a1a) !important;
        color: #1a1206 !important;
        border: none !important;
        font-weight: 700;
        border-radius: 10px !important;
    }
}
