        @media (max-width: 768px) {
            [data-theme="default"] body {
                background: #ECEDEE;
            }
        }
        @media (max-width: 768px) {
            body {
                padding: 8px 8px 16px 8px;
                padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
                padding-bottom: env(safe-area-inset-bottom, 16px);
                -ms-overflow-style: none;
                scrollbar-width: none;
            }

            * {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }

            *::-webkit-scrollbar {
                display: none;
                width: 0;
                height: 0;
            }

            .container {
                max-width: 100%;
            }

            /* 头部区域 */
            .header {
                padding: 12px;
                margin-bottom: 12px;
            }

            .site-logo {
                width: 40px;
                height: 40px;
                border-radius: 8px;
                object-fit: cover;
            }

            .header-brand {
                margin-bottom: 0;
            }

            .header-brand h1 {
                margin-bottom: 8px;
            }

            h1 {
                font-size: 22px;
                font-weight: 700;
                margin-bottom: 8px;
                padding-right: 0;
            }

            /* 移动端账户筛选 Tab */
            .account-filter-tabs {
                gap: 4px;
                margin-bottom: 8px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                flex-wrap: nowrap;
            }
            .account-filter-tabs::-webkit-scrollbar {
                display: none;
            }

            .account-filter-tab {
                padding: 5px 10px;
                font-size: 11px;
                flex-shrink: 0;
                white-space: nowrap;
            }

            /* 移动端分配行 */
            .mobile-assign-row {
                margin: 12px 0;
                justify-content: center;
            }

            .mobile-assign-icon {
                line-height: 1;
            }

            /* 移动端账户统计 */
            .account-stats-bar {
                padding: 12px;
                margin-bottom: 8px;
            }

            .account-stats-title {
                font-size: 15px;
                margin-bottom: 10px;
            }

            .account-stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .account-stat-item {
                padding: 10px 12px;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .account-stat-label {
                font-size: 12px;
                margin-bottom: 0;
            }

            .account-stat-value {
                font-size: 15px;
            }

            /* 移动端自选账户入口 */
            .watchlist-account-bar {
                gap: 8px;
                margin-bottom: 10px;
            }

            .watchlist-account-entry {
                padding: 8px 10px;
                border-radius: 8px;
                gap: 6px;
            }

            .watchlist-account-icon {
                width: 28px;
                height: 28px;
                border-radius: 50%;
            }

            .watchlist-account-icon svg {
                width: 14px;
                height: 14px;
            }

            .watchlist-account-label {
                font-size: 12px;
            }

            .watchlist-account-desc {
                font-size: 10px;
            }

            .header-actions-right {
                position: static;
                display: inline-flex;
                order: 2;
                align-self: flex-start;
                margin-bottom: 8px;
                gap: 8px;
            }

            .header-actions-right .user-panel,
            .header-actions-right .theme-toggle,
            .header-actions-right .pricing-btn {
                position: static;
                display: inline-flex;
                font-size: 12px;
                padding: 4px 8px;
                margin-bottom: 0;
            }

            .theme-toggle-dropdown {
                top: 36px;
                right: auto;
                left: 0;
            }

            .header {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                background: var(--bg-card);
                backdrop-filter: blur(8px);
                border-radius: 12px;
                box-shadow: var(--shadow-lg);
                padding: 12px 16px;
                margin-bottom: 16px;
            }

            .header-title-wrap {
                display: flex;
                flex-direction: column;
            }

            .header h1 {
                order: 0;
                font-size: 22px;
                font-weight: 700;
                margin-bottom: 0;
                flex-shrink: 0;
                line-height: 1.3;
            }

            .header-title-now {
                color: #dc2626;
            }

            .header-subtitle {
                font-size: 10px;
                color: var(--text-secondary);
                margin-top: 2px;
                line-height: 1.3;
            }

            .header .controls {
                order: 0;
                margin-top: 0;
                flex: 1;
                justify-content: flex-end;
            }

            .controls {
                flex-wrap: wrap;
                gap: 8px;
            }

            .add-fund {
                display: flex;
                align-items: center;
                gap: 8px;
                min-width: auto;
                flex: none;
                justify-content: flex-end;
            }

            .add-fund input {
                min-width: 0;
                min-height: 32px;
                font-size: 16px;
                box-sizing: border-box;
            }

            .add-fund input::placeholder {
                font-size: 14px;
            }

            .add-fund .btn {
                min-height: 32px;
                padding: 4px 12px;
                font-size: 12px;
            }

            .sort-controls {
                display: none !important;
            }

            .backup-controls {
                display: none !important;
            }

            /* 移动端隐藏顶部操作按钮（移至"我的"页面） */
            .header-actions-right {
                display: none !important;
            }


            /* 移动端搜索图标 */
            .mobile-search-trigger {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                background: var(--bg-card);
                border: 1px solid var(--primary-200);
                color: var(--primary-600);
                cursor: pointer;
                flex-shrink: 0;
                -webkit-tap-highlight-color: transparent;
                position: relative;
                z-index: 1001;
            }

            .mobile-search-overlay {
                display: none;
                position: fixed;
                inset: 0;
                background: transparent;
                z-index: 1000;
            }

            .mobile-search-overlay.active {
                display: block;
            }

            .mobile-search-bar {
                display: none;
                align-items: center;
                gap: 8px;
                flex: 1;
                min-width: 0;
                position: relative;
                z-index: 1001;
            }

            .mobile-search-bar.active {
                display: flex;
                justify-content: center;
            }

            .mobile-search-bar .autocomplete-wrapper {
                flex: 1;
                min-width: 0;
            }

            /* 座右铭卡片 */
            .motto-card {
                background: var(--bg-card);
                border-radius: 20px;
                box-shadow: var(--shadow-lg);
                margin-bottom: 12px;
                padding: 20px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                cursor: pointer;
                transition: transform 0.2s ease;
            }
            .motto-card:active {
                transform: scale(0.98);
            }
            .motto-quote {
                font-family: 'Georgia', 'Times New Roman', 'STKaiti', 'KaiTi', serif;
                font-size: 22px;
                font-weight: 700;
                color: var(--text-primary);
                line-height: 1;
            }
            .motto-quote-open {
                text-align: left;
                margin-bottom: 6px;
            }
            .motto-quote-close {
                text-align: right;
                margin-top: 6px;
            }
            .motto-text {
                font-family: 'Georgia', 'Times New Roman', 'STKaiti', 'KaiTi', serif;
                font-size: 18px;
                font-weight: 700;
                color: var(--text-primary);
                line-height: 1.5;
                word-break: break-all;
                text-align: justify;
                padding: 0 9px;
            }

            /* 总览面板 */
            .overview-panel {
                margin-bottom: 12px;
            }

            .overview-card {
                padding: 12px;
            }

            .overview-header {
                margin-bottom: 12px;
                padding-bottom: 8px;
            }

            .overview-header h2 {
                font-size: 16px;
            }

            .overview-date {
                font-size: 10px;
            }

            .overview-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .overview-stats .stat-item {
                padding: 12px 12px;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .stat-label {
                font-size: 12px;
                margin-bottom: 0;
            }

            .stat-value {
                font-size: 16px;
            }

            /* 板块选项卡 */
            .fund-section-tabs {
                display: flex;
                gap: 8px;
                margin-bottom: 12px;
            }

            /* 板块选项卡 */
            .fund-section-tabs {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                flex-wrap: nowrap;
                gap: 6px;
            }
            .fund-section-tabs::-webkit-scrollbar {
                display: none;
            }
            .fund-section-tabs {
                overscroll-behavior-x: contain;
            }
            .fund-section-tabs .section-tab {
                flex-shrink: 0;
                white-space: nowrap;
                font-size: 12px;
                padding: 6px 10px;
            }
            .fund-section-tabs .count-badge {
                font-size: 10px;
                padding: 1px 5px;
            }

            /* 底部导航 */
            .mobile-nav-bar {
                display: flex;
            }

            .mobile-nav-item {
                background: transparent;
            }

            /* 隐藏桌面板块标签 */
            .fund-section-tabs,
            .fund-section-bar {
                display: none;
            }

            /* 页面底部给悬浮导航留空间 */
            #fundsContainer,
            #balanceContainer,
            #divLowVolContainer,
            #sp500vixContainer,
            #profileContainer {
                padding-bottom: 88px;
            }

            /* 基金列表：隐藏网格，显示表格 */
            .funds-grid {
                display: none;
            }

            /* 表格容器允许横向滚动 */
            .balance-table-container,
            .divlowvol-table-wrap,
            .divlowvol-yield-table-wrap {
                overflow-x: auto;
                overflow-y: visible;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior-x: contain;
            }

            /* 再平衡饼图卡片 */
            .balance-chart-card {
                padding: 20px;
            }

            /* 再平衡表格卡片 */
            .balance-table-card {
                padding: 20px;
                margin-top: 0;
            }

            /* 表格固定宽度确保可滑动 */
            .balance-table {
                width: 720px;
                table-layout: fixed;
            }
            .divlowvol-yield-table {
                width: 664px;
                table-layout: fixed;
            }

            /* 美股模块：场外基金/QDII 表 — 4 列自适应铺满，不横滑 */
            .us-fund-table-title {
                font-size: 16px;
            }
            .us-fund-table-update {
                font-size: 10px;
            }
            .us-fund-table {
                width: 100%;
                table-layout: fixed;
            }
            .us-fund-table th,
            .us-fund-table td {
                padding: 10px 6px;
                font-size: 12px;
            }
            .us-fund-desktop-col {
                display: none;
            }
            .us-fund-table th:nth-child(1),
            .us-fund-table td:nth-child(1) {
                width: 46%;
                text-align: left;
                padding-left: 10px;
            }
            .us-fund-table th:nth-child(2),
            .us-fund-table td:nth-child(2) {
                width: 18%;
            }
            .us-fund-table th:nth-child(6),
            .us-fund-table td:nth-child(6) {
                width: 18%;
            }
            .us-fund-table th:nth-child(8),
            .us-fund-table td:nth-child(8) {
                width: 18%;
                padding-right: 10px;
            }
            .us-fund-table td:nth-child(8) {
                font-weight: 600;
            }
            .us-fund-table td:nth-child(2),
            .us-fund-table td:nth-child(6) {
                font-weight: 600;
            }
            .us-fund-table .balance-fund-name {
                font-size: 12px;
            }
            .us-fund-table .balance-fund-code {
                font-size: 10px;
            }
            .us-fund-table .balance-fund-name,
            .us-fund-table .balance-fund-code {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                display: block;
                max-width: 100%;
            }
            /* 该表格无需横滑提示 */
            .us-fund-tables-card .mobile-table-hint {
                display: none;
            }

            /* 再平衡表格：只固定首列 */
            .balance-table th:nth-child(1),
            .balance-table td:nth-child(1) {
                width: 100px;
                min-width: 100px;
                max-width: 100px;
            }
            .balance-table th:nth-child(2),
            .balance-table td:nth-child(2) {
                width: 84px;
                min-width: 84px;
                max-width: 84px;
            }
            .balance-table th:nth-child(3),
            .balance-table td:nth-child(3) {
                width: 80px;
                min-width: 80px;
                max-width: 80px;
            }
            .balance-table th:nth-child(1) {
                position: sticky;
                left: 0;
                color: var(--bg-surface);
            }
            .balance-table td:nth-child(1) {
                position: sticky;
                left: 0;
                background: var(--bg-surface);
            }

            /* tfoot 合计行不固定，避免 colspan 过宽遮挡滑动内容 */
            .balance-table tfoot td:nth-child(1) {
                position: static;
                left: auto;
                background: transparent;
            }

            /* 移动端表格滑动提示 */
            .mobile-table-hint {
                display: block;
                font-size: 10px;
                color: var(--primary-400);
                margin-bottom: 8px;
                text-align: left;
            }

            /* 默认主题：表头使用固定渐变保证连续 */
            [data-theme="default"] .balance-table th,
            [data-theme="default"] .divlowvol-table th,
            [data-theme="default"] .divlowvol-yield-table th {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                background-attachment: fixed;
            }

            /* apple主题 */
            [data-theme="apple"] .balance-table th:nth-child(1),
            [data-theme="apple"] .divlowvol-table th:nth-child(1),
            [data-theme="apple"] .divlowvol-table th:nth-child(2),
            [data-theme="apple"] .divlowvol-yield-table th:nth-child(1) {
                background: #0066cc;
            }

            /* binance主题 */
            [data-theme="binance"] .balance-table th:nth-child(1),
            [data-theme="binance"] .divlowvol-table th:nth-child(1),
            [data-theme="binance"] .divlowvol-table th:nth-child(2),
            [data-theme="binance"] .divlowvol-yield-table th:nth-child(1) {
                background: #fcd535;
                color: #181a20;
            }

            /* dark主题 */
            /* forest主题 */
            [data-theme="forest"] .balance-table th:nth-child(1),
            [data-theme="forest"] .divlowvol-table th:nth-child(1),
            [data-theme="forest"] .divlowvol-table th:nth-child(2),
            [data-theme="forest"] .divlowvol-yield-table th:nth-child(1) {
                background: #5D9465;
            }

            /* coral主题 */
            [data-theme="coral"] .balance-table th:nth-child(1),
            [data-theme="coral"] .divlowvol-table th:nth-child(1),
            [data-theme="coral"] .divlowvol-table th:nth-child(2),
            [data-theme="coral"] .divlowvol-yield-table th:nth-child(1) {
                background: #C47860;
            }

            .balance-table td:nth-child(1) .balance-fund-name,
            .balance-table td:nth-child(1) .balance-fund-code {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                display: block;
                max-width: 88px;
            }

            .mobile-fund-name {
                font-size: 12px;
            }

            /* 再平衡饼图卡片 */
            .balance-chart-card {
                text-align: center;
            }
            .balance-chart-card canvas {
                margin-left: auto !important;
                margin-right: auto !important;
                display: block !important;
            }

            /* 红利低波明细表：固定指数代码和日期列（仅红利低波，不含美股基金表） */
            .divlowvol-table:not(.us-fund-table) th:nth-child(1),
            .divlowvol-table:not(.us-fund-table) td:nth-child(1) {
                width: 80px;
                min-width: 80px;
                max-width: 80px;
            }
            .divlowvol-table:not(.us-fund-table) th:nth-child(2),
            .divlowvol-table:not(.us-fund-table) td:nth-child(2) {
                width: 90px;
                min-width: 90px;
                max-width: 90px;
            }
            .divlowvol-table:not(.us-fund-table) th:nth-child(1) {
                position: sticky;
                left: 0;
                color: var(--bg-surface);
                z-index: 2;
            }
            .divlowvol-table:not(.us-fund-table) th:nth-child(2) {
                position: sticky;
                left: 80px;
                color: var(--bg-surface);
                z-index: 2;
            }
            .divlowvol-table:not(.us-fund-table) td:nth-child(1) {
                position: sticky;
                left: 0;
                background: var(--bg-surface);
                z-index: 1;
            }
            .divlowvol-table:not(.us-fund-table) td:nth-child(2) {
                position: sticky;
                left: 80px;
                background: var(--bg-surface);
                z-index: 1;
            }

            /* 红利低波收益率表：只固定指数代码列 */
            .divlowvol-yield-table {
                width: 520px;
                table-layout: fixed;
            }
            .divlowvol-yield-table th:nth-child(1),
            .divlowvol-yield-table td:nth-child(1) {
                width: 80px;
                min-width: 80px;
                max-width: 80px;
            }
            .divlowvol-yield-table th:nth-child(1) {
                position: sticky;
                left: 0;
                color: var(--bg-surface);
                z-index: 2;
            }
            .divlowvol-yield-table td:nth-child(1) {
                position: sticky;
                left: 0;
                background: var(--bg-surface);
                z-index: 1;
            }
            /* 覆盖桌面端第一行半透明背景 */
            .divlowvol-yield-table tbody tr:first-child td {
                background: var(--bg-surface);
            }

            /* 红利低波指数按钮padding */
            .dlv-tab {
                padding: 6px 10px;
            }

            /* 红利低波收益率表：取消第二列固定 */
            .divlowvol-yield-table th:nth-child(2),
            .divlowvol-yield-table td:nth-child(2) {
                position: static;
                left: auto;
            }

            /* 每期金额说明左对齐 */
            .balance-calc-hint,
            .balance-type-hint {
                padding: 0;
            }

            /* 红利低波分页按钮高度 */
            .divlowvol-page .btn {
                height: 20px;
                padding: 0 10px;
                font-size: 11px;
                line-height: 20px;
            }
            .divlowvol-page #dlv-pageInfo,
            .divlowvol-page .dlv-page-jump {
                font-size: 10px;
            }

            /* 红利低波指标区域移动端适配 */
            .divlowvol-metrics-row {
                gap: 8px;
                margin-bottom: 12px;
            }
            .divlowvol-metric-card {
                padding: 12px 8px;
            }
            .divlowvol-metric-card .stat-value {
                font-size: 20px;
            }
            .divlowvol-metric-card .stat-sub {
                font-size: 8px;
            }
            .divlowvol-metric-card .stat-label {
                font-size: 10px;
            }

            /* 弹窗系统 */
            .modal-mobile-center {
                display: inherit;
                justify-content: center;
                align-items: center;
                width: 100%;
                height: 100%;
            }

            #fundDetailModal {
                display: none;
                background: var(--bg-surface);
                align-items: stretch;
                justify-content: stretch;
            }
            #fundDetailModal.active {
                display: block;
            }
            #fundDetailModal .modal-mobile-center {
                display: block;
                width: 100%;
                height: 100%;
            }
            #fundDetailModal .modal-content.fund-detail-modal-content {
                position: fixed;
                inset: 0;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                transform: none;
                border-radius: 0;
                max-height: 100vh;
                width: 100%;
                max-width: 100% !important;
                padding: 0;
                margin: 0;
                display: flex;
                flex-direction: column;
                background: var(--bg-surface);
                animation: slideInRight 0.25s ease-out;
                overflow: hidden;
            }
            #fundDetailModal .modal-header {
                flex-shrink: 0;
                padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
            }
            #fundDetailModal .fund-detail-back-btn {
                position: absolute;
                left: 16px;
                background: none;
                border: none;
                color: var(--text-primary);
                cursor: pointer;
                padding: 0;
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            #fundDetailModal .modal-header .close-btn {
                display: none;
            }
            #fundDetailModal #fundDetailModalBody {
                flex: 1;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
                touch-action: auto;
                padding: 0 16px 16px;
            }

            /* 移动端基金详情二级页面 */
            .fund-detail-page {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: var(--bg-surface);
                z-index: 900;
                flex-direction: column;
                animation: slideInRight 0.25s ease-out;
            }
            .fund-detail-page.active {
                display: flex;
            }
            .fund-detail-page-header {
                flex-shrink: 0;
                padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
                display: flex;
                align-items: center;
                position: relative;
            }
            .fund-detail-page-header .fund-detail-back-btn {
                position: absolute;
                left: 16px;
                background: none;
                border: none;
                color: var(--text-primary);
                cursor: pointer;
                padding: 0;
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .fund-detail-page-title-wrap {
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 0 44px;
            }
            .fund-detail-page-title {
                font-size: 16px;
                font-weight: 600;
                line-height: 1.3;
                text-align: center;
            }
            .fund-detail-page-code {
                font-size: 12px;
                color: var(--primary-500);
                margin-top: 2px;
            }
            .fund-detail-page-body {
                flex: 1;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                padding: 0 24px 16px;
            }
            .fund-detail-page-body .fund-card {
                box-shadow: none;
                background: transparent;
                padding: 0;
                border: none;
                backdrop-filter: none;
                border-radius: 0;
            }
            .fund-detail-page-body .chart-container {
                height: 120px;
                margin: 12px 0 8px;
                padding: 0 8px;
                box-sizing: border-box;
            }
            .fund-detail-page-body .net-worth-chart-container {
                min-height: 200px;
                height: 200px;
                margin: 12px 0 8px;
                padding: 0 8px;
                box-sizing: border-box;
            }
            .fund-detail-page-body .performance-chart-container {
                min-height: 200px;
                height: 200px;
                margin: 12px 0 8px;
                padding: 0 8px;
                box-sizing: border-box;
            }
            .fund-detail-page-body .period-tab {
                padding: 3px 8px;
                font-size: 12px;
            }
            .fund-detail-page-body .nav-table {
                font-size: 10px;
            }
            .fund-detail-page-body .nav-table th,
            .fund-detail-page-body .nav-table td {
                padding: 5px 8px;
            }
            .fund-detail-page-body .position-grid {
                gap: 8px;
            }
            .fund-detail-page-body .position-label {
                font-size: 10px;
            }
            .fund-detail-page-body .position-value {
                font-size: 14px;
            }
            .fund-detail-page-body .percentage-container {
                margin: 16px 0;
            }
            .fund-detail-page-body .info-item {
                padding: 10px 0;
            }
            .fund-detail-page-body .stock-holdings-wrapper {
                max-height: none !important;
                overflow: visible !important;
            }
            .fund-detail-page-body .fund-star-btn { padding: 0 6px; }
            .fund-detail-page-body .fund-star-btn svg { width: 20px; height: 20px; }
            .page-hidden {
                display: none !important;
            }
            /* 进入基金详情页时隐藏底部悬浮导航栏 */
            body:has(.fund-detail-page.active) .mobile-nav-bar {
                display: none !important;
            }
            /* 进入基金详情页时隐藏浮动搜索按钮 */
            body:has(.fund-detail-page.active) .floating-search-btn {
                display: none !important;
            }
            /* 基金详情页内 tab 切换不做 translate 动画，避免页面"上缩"错觉 */
            .fund-detail-page-body .fund-tab-content {
                animation: none;
            }
            .fund-detail-page-body .fund-tab-content.active {
                animation: fadeInPlain 0.2s ease-out;
            }
            @keyframes fadeInPlain {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            /* 详情页顶部徽章行：保持固定高度，避免被 flex 上下文挤压 */
            .fund-detail-badge-row {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 8px;
                flex-shrink: 0;
                min-height: 32px;
            }
            .fund-detail-badge-row .badge-group {
                font-size: 12px;
                color: var(--primary-500);
                display: inline-flex;
                align-items: center;
                gap: 6px;
                flex-wrap: nowrap;
            }
            .fund-detail-badge-row .btn-danger {
                font-size: 12px;
                flex-shrink: 0;
            }

            .modal-content {
                width: 100%;
                max-width: none;
                border-radius: 16px 16px 0 0;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                max-height: 85vh;
                overflow-y: auto;
                padding: 16px 16px 24px;
                margin: 0;
                animation: slideUp 0.2s ease-out;
                overscroll-behavior: contain;
                touch-action: auto;
                -webkit-overflow-scrolling: touch;
            }

            @keyframes slideUp {
                from { transform: translateY(100%); }
                to { transform: translateY(0); }
            }

            .modal-confirm {
                max-width: none;
                border-radius: 16px 16px 0 0;
            }

            #authModal .modal-content,
            #pricingModal .modal-content,
            #forgotPasswordModal .modal-content,
            #upgradeModal .modal-content,
            #buyModal .modal-content,
            #sellModal .modal-content,
            #initialPurchaseModal .modal-content,
            #createAccountModal .modal-content,
            #accountActionModal .modal-content,
            #customConfirmModal .modal-content,
            #mobileThemeModal .modal-content,
            #sipModal .modal-content {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                bottom: auto;
                border-radius: 16px;
                max-height: 90vh;
                width: calc(100% - 32px);
                animation: modalFadeIn 0.2s ease-out;
            }

            #transactionHistoryModal .modal-content {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                bottom: auto;
                border-radius: 16px;
                max-height: 85vh;
                width: calc(100% - 32px);
                animation: modalFadeIn 0.2s ease-out;
                overflow-y: auto;
            }

            #syncConfigModal .sync-config-content {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                bottom: auto;
                border-radius: 16px;
                max-height: 90vh;
                width: calc(100% - 32px);
                max-width: 308px;
                animation: modalFadeIn 0.2s ease-out;
            }

            #aboutModal {
                background: inherit;
                align-items: stretch;
                justify-content: stretch;
            }
            #aboutModal .modal-content {
                position: fixed;
                inset: 0;
                transform: none;
                border-radius: 0;
                max-height: 100vh;
                width: 100%;
                max-width: 100% !important;
                padding: 0;
                margin: 0;
                display: flex;
                flex-direction: column;
                background: transparent;
                animation: slideInRight 0.25s ease-out;
            }
            #aboutModal .modal-header {
                flex-shrink: 0;
                padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
            }
            #aboutModal .modal-header h3 {
                margin: 0;
                text-align: center;
            }
            #aboutModal .about-back-btn {
                position: absolute;
                left: 16px;
                background: none;
                border: none;
                color: var(--text-primary);
                cursor: pointer;
                padding: 0;
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            #aboutModal .modal-header .close-btn {
                display: none;
            }
            #aboutModal .modal-body {
                flex: 1;
                overflow-y: auto;
                padding: 16px;
                -webkit-overflow-scrolling: touch;
            }
            #aboutModal .about-contact-list {
                background: var(--bg-card);
                border-radius: var(--radius-md);
                box-shadow: var(--shadow-sm);
                overflow: hidden;
                margin-top: 16px;
            }
            #aboutModal .about-contact-item {
                justify-content: space-between;
                padding: 12px 16px;
                border-bottom: 1px solid var(--primary-100);
                gap: 0;
            }
            #aboutModal .about-contact-item:last-child {
                border-bottom: none;
            }
            #aboutModal .about-contact-icon {
                width: 20px;
                height: 20px;
                flex-shrink: 0;
                margin-right: 12px;
            }
            #aboutModal .about-contact-icon svg {
                width: 20px;
                height: 20px;
            }
            #aboutModal .about-contact-info {
                flex-direction: row;
                align-items: center;
                flex: 1;
                gap: 12px;
            }
            #aboutModal .about-contact-label {
                font-size: 14px;
                font-weight: 600;
                color: var(--text-primary);
            }
            #aboutModal .about-contact-value {
                font-size: 12px;
                color: var(--text-secondary);
                margin-left: auto;
            }
            #screenshotImportModal {
                background: inherit;
                align-items: stretch;
                justify-content: stretch;
            }
            #screenshotImportModal .modal-content.screenshot-import-modal-content {
                position: fixed;
                inset: 0;
                transform: none;
                border-radius: 0;
                max-height: 100vh;
                width: 100%;
                max-width: 100% !important;
                padding: 0;
                margin: 0;
                display: flex;
                flex-direction: column;
                background: var(--bg-surface);
                animation: slideInRight 0.25s ease-out;
            }
            #screenshotImportModal .modal-header {
                flex-shrink: 0;
                padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
                display: grid;
                grid-template-columns: 44px 1fr 44px;
                align-items: center;
                justify-items: center;
            }
            #screenshotImportModal .screenshot-import-title {
                margin: 0;
                text-align: center;
                font-size: 16px;
                font-weight: 600;
            }
            #screenshotImportModal .screenshot-back-btn {
                position: static;
                justify-self: start;
                background: none;
                border: none;
                color: var(--text-primary);
                cursor: pointer;
                padding: 8px;
                width: 44px;
                height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 10;
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
            }
            #screenshotImportModal .modal-header .close-btn {
                display: none;
            }
            #screenshotImportModal .screenshot-import-desc {
                padding: 0 18px;
                margin: 4px 0 8px;
                font-size: 10px;
            }
            #screenshotImportModal .screenshot-import-body {
                flex: 1;
                overflow-y: auto;
                padding: 0 0 12px;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
            }
            #screenshotImportModal .screenshot-import-desc {
                padding: 0 24px;
                margin: 4px 0 8px;
            }
            #screenshotImportModal .screenshot-results {
                margin-top: 8px;
            }
            #screenshotImportModal .screenshot-results > p {
                margin-left: 24px;
                margin-right: 24px;
                font-size: 14px;
                font-weight: 600;
            }
            #screenshotImportModal .screenshot-filtered-hint {
                display: none;
                align-items: flex-start;
                gap: 8px;
                font-size: 12px;
                color: var(--primary-500);
                margin: 0 24px 10px;
                padding: 10px 18px;
                background: var(--primary-25);
                border-radius: 8px;
                line-height: 1.5;
            }
            #screenshotImportModal .screenshot-filtered-hint svg {
                flex-shrink: 0;
                margin-top: 2px;
                color: var(--accent-warm);
            }
            #screenshotImportModal .screenshot-results-cards {
                padding: 0;
            }
            #screenshotImportModal .screenshot-result-card-v2 {
                margin: 0 24px 12px;
                border-radius: 12px;
                border: 1px solid var(--primary-200);
                overflow: hidden;
            }
            #screenshotImportModal .screenshot-results-cards {
                max-height: none;
                overflow-y: visible;
            }
            .screenshot-preview-list {
                padding: 8px 24px;
            }
            #screenshotImportModal .screenshot-result-card-header-v2 {
                background: var(--primary-500);
                border-radius: 12px 12px 0 0;
            }
            [data-theme="default"] #screenshotImportModal .screenshot-result-card-header-v2 {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            }
            [data-theme="apple"] #screenshotImportModal .screenshot-result-card-header-v2 {
                background: #0066cc;
            }
            [data-theme="binance"] #screenshotImportModal .screenshot-result-card-header-v2 {
                background: #fcd535;
            }
            [data-theme="binance"] #screenshotImportModal .screenshot-result-card-title,
            [data-theme="binance"] #screenshotImportModal .screenshot-result-card-code {
                color: #1e2329;
            }
            #screenshotImportModal .screenshot-result-card-header-v2 {
                padding: 10px 12px;
            }
            #screenshotImportModal .screenshot-result-card-title {
                font-size: 14px;
            }
            #screenshotImportModal .screenshot-result-card-code {
                font-size: 12px;
            }
            #screenshotImportModal .screenshot-result-card-body-v2 {
                padding: 10px 12px;
                gap: 8px;
            }
            #screenshotImportModal .screenshot-result-card-cell-v2 label {
                font-size: 12px;
                color: var(--primary-500);
                font-weight: 400;
            }
            #screenshotImportModal .screenshot-result-card-cell-v2 .screenshot-result-card-value {
                font-size: 12px;
                font-weight: 600;
            }
            #screenshotImportModal .screenshot-account-custom-select {
                flex: 1;
                min-width: 0;
                height: 28px;
            }
            #screenshotImportModal .screenshot-account-custom-select .custom-select-trigger {
                height: 28px;
                padding: 0 8px;
                font-size: 12px;
            }
            #screenshotImportModal .screenshot-result-card-delete-text {
                font-size: 12px;
                font-weight: 600;
            }
            #screenshotImportModal .form-actions {
                flex-shrink: 0;
                padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
                margin: 0;
                gap: 12px;
                background: transparent;
            }
            #screenshotImportModal .form-actions .btn-secondary {
                display: none;
            }
            @keyframes slideInRight {
                from { transform: translateX(100%); }
                to { transform: translateX(0); }
            }

            @keyframes modalFadeIn {
                from { opacity: 0; transform: translate(-50%, -45%); }
                to { opacity: 1; transform: translate(-50%, -50%); }
            }

            .confirm-message {
                font-size: 12px;
            }

            .confirm-detail-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .confirm-fund-name {
                font-size: 12px;
            }

            .confirm-section-title {
                font-size: 12px;
            }

            .form-group label:not(.toggle-switch) {
                font-size: 12px;
            }

            .form-group input {
                font-size: 16px;
                padding: 12px;
                min-height: 44px;
            }

            .form-group input[type="datetime-local"] {
                -webkit-appearance: none;
                appearance: none;
                min-width: 100%;
            }

            .btn {
                height: 40px;
                font-size: 12px;
                padding: 0 12px;
            }

            .position-actions .btn {
                height: 20px;
                font-size: 12px;
                padding: 0 8px;
            }

            .form-actions {
                position: sticky;
                bottom: 0;
                background: var(--bg-surface);
                padding-top: 12px;
                margin-top: 8px;
            }

            .position-header h4 {
                font-size: 12px;
                font-weight: 600;
            }

            .fund-details-header h4 {
                font-size: 12px;
                font-weight: 600;
            }

            /* 交易历史 */
            #transactionHistoryContent {
                max-height: none;
            }

            .transaction-item {
                padding: 16px 0;
                flex-direction: row;
                align-items: center;
                gap: 8px;
            }

            .transaction-item .transaction-info {
                flex: 1;
            }

            .transaction-type-icon {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 24px;
                height: 24px;
                flex-shrink: 0;
                align-self: flex-start;
                margin-top: 2px;
            }

            .transaction-type-icon svg {
                width: 100%;
                height: 100%;
            }

            .transaction-details,
            .transaction-date {
                font-size: 12px;
            }

            /* 买入卖出弹窗 */
            .buy-mode-tabs {
                margin-bottom: 12px;
                padding-bottom: 8px;
            }

            .mode-tab {
                font-size: 12px;
                padding: 8px;
                min-height: 44px;
            }

            .quick-sell-buttons {
                margin-top: 8px;
            }

            .quick-sell-btn {
                font-size: 12px;
                padding: 8px;
                min-height: 36px;
            }

            /* 基金详情面板布局 */
            .mobile-fund-sheet.active {
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .mobile-fund-sheet-content {
                position: relative;
                left: auto;
                right: auto;
                bottom: auto;
                border-radius: 16px;
                width: calc(100% - 32px);
                max-width: 385px;
                transform: none;
                transition: opacity 0.2s ease-out;
                opacity: 0;
            }

            .mobile-fund-sheet.active .mobile-fund-sheet-content {
                transform: none;
                opacity: 1;
            }

            /* 基金详情面板内样式 */
            .mobile-fund-sheet-body .fund-tabs {
                margin-bottom: 8px;
                margin-top: 0;
            }

            .mobile-fund-sheet-body .fund-tab {
                font-size: 12px;
                padding: 8px;
            }

            .mobile-fund-sheet-body .percentage-container {
                margin-bottom: 8px;
            }

            .mobile-fund-sheet-body .percentage {
                font-size: 16px;
            }

            .mobile-fund-sheet-body .daily-profit {
                font-size: 16px;
                padding: 4px 12px;
            }

            .mobile-fund-sheet-body .chart-container {
                height: 90px;
                margin-bottom: 8px;
            }

            .mobile-fund-sheet-body .net-worth-chart-container {
                min-height: 200px;
                height: 200px;
            }

            .mobile-fund-sheet-body .position-grid {
                gap: 8px;
            }

            .mobile-fund-sheet-body .position-label {
                font-size: 10px;
            }

            .mobile-fund-sheet-body .position-value {
                font-size: 12px;
            }

            .mobile-fund-sheet-body .fund-detail-label {
                font-size: 10px;
            }

            .mobile-fund-sheet-body .fund-detail-value {
                font-size: 12px;
            }

            .mobile-fund-sheet-body .fund-details-grid {
                gap: 8px;
            }

            /* 同步配置弹窗 */
            .sync-config-content {
                width: 100%;
                max-width: none;
                border-radius: 16px 16px 0 0;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                padding: 16px 16px 24px;
                background: var(--bg-surface);
                color: var(--primary-700);
            }

            /* 移动端基金列表头部 */
            .mobile-fund-list-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0 8px 8px 12px;
            }

            .mobile-fund-list-title {
                font-size: 16px;
                font-weight: 600;
                color: var(--primary-800);
            }

            .mobile-fund-list-count {
                font-size: 10px;
                font-weight: 400;
                color: var(--primary-400);
                margin-left: 8px;
                vertical-align: middle;
            }

            .sort-dropdown-wrapper {
                display: flex;
                align-items: center;
                gap: 4px;
            }

            .sort-dropdown-btn {
                width: 40px;
                height: 40px;
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
                -webkit-touch-callout: none;
                user-select: none;
            }

            .sort-dropdown-btn:active {
                opacity: 0.7;
            }

            .sort-dropdown-menu {
                z-index: 9999;
            }

            /* 截图导入弹窗移动端 */
            .screenshot-import-modal-content {
                width: 90%;
                max-width: 420px;
                max-height: 80vh;
                border-radius: var(--radius-md);
                margin: auto;
                padding: 20px;
                position: relative;
                bottom: auto;
                left: auto;
                right: auto;
                animation: fadeIn 0.2s ease-out;
            }

            @keyframes fadeIn {
                from { opacity: 0; transform: scale(0.95); }
                to { opacity: 1; transform: scale(1); }
            }

            .screenshot-upload-area {
                padding: 24px 18px;
                margin: 0 24px;
                min-height: 130px;
                box-sizing: border-box;
            }
            .screenshot-preview {
                margin: 16px 24px 0;
                min-height: 130px;
                box-sizing: border-box;
            }
            .screenshot-preview-list {
                padding: 8px 18px;
            }

            .screenshot-results-cards {
                max-height: 260px;
                gap: 10px;
            }

            .screenshot-preview-list {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
                gap: 6px;
                padding: 8px 24px;
            }

            .screenshot-preview-item {
                aspect-ratio: 1;
            }

            #screenshotImportModal .screenshot-result-card-row-v2 {
                align-items: center;
                min-height: 28px;
            }

            .screenshot-result-card {
                padding: 12px 14px;
            }

            .screenshot-result-card-name {
                font-size: 14px;
            }

            .screenshot-result-card-field input,
            .screenshot-result-card-value {
                padding: 0;
                font-size: 14px;
            }

            /* 标普500 & VIX 指标面板移动端 */
            .sp500vix-metrics {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }

            .metric-card .metric-label {
                font-size: 11px;
            }

            .metric-card .metric-value {
                font-size: 18px;
            }

            .metric-card .metric-change {
                font-size: 12px;
            }

            .metric-card .metric-date {
                font-size: 8px;
            }

            .metric-card .metric-hint {
                font-size: 8px;
            }

            .pricing-table {
                font-size: 12px;
            }

            .pricing-table th,
            .pricing-table td {
                padding: 8px 8px;
            }

            .pricing-table th:nth-child(3),
            .pricing-table td:nth-child(3) {
                font-size: 12px;
            }

            /* 移动端浅色主题：去掉主卡片阴影，避免间隙与边缘背景色不统一 */
            :root:not([data-theme]) .header,
            :root:not([data-theme]) .overview-card,
            [data-theme="default"] .header,
            [data-theme="default"] .overview-card,
            [data-theme="forest"] .header,
            [data-theme="forest"] .overview-card,
            [data-theme="coral"] .header,
            [data-theme="coral"] .overview-card {
                box-shadow: none;
            }
        }

        /* 持仓股票列表 */
        .stock-holdings-wrapper {
            max-height: 320px;
            overflow-y: auto;
        }

        .stock-holdings-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 4px 0 8px;
            font-size: 11px;
        }

        .stock-holdings-meta-left {
            color: var(--text-primary);
            font-weight: 600;
        }

        .stock-holdings-meta-right {
            color: var(--text-secondary);
        }

        .stock-holdings-table-wrap {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(100, 116, 139, 0.08);
        }

        .stock-holdings-table {
            width: 100%;
            table-layout: fixed;
            border-collapse: collapse;
            font-size: 12px;
            background: var(--bg-card);
        }

        .stock-holdings-table th:nth-child(1),
        .stock-holdings-table td:nth-child(1) { width: 12%; }
        .stock-holdings-table th:nth-child(2),
        .stock-holdings-table td:nth-child(2) { width: 44%; }
        .stock-holdings-table th:nth-child(3),
        .stock-holdings-table td:nth-child(3) { width: 22%; }
        .stock-holdings-table th:nth-child(4),
        .stock-holdings-table td:nth-child(4) { width: 22%; }

        .stock-holdings-table thead {
            background: var(--primary-400);
            color: var(--bg-surface);
        }

        .stock-holdings-table thead th {
            padding: 12px 8px;
            text-align: center;
            font-weight: 500;
            font-size: 12px;
            white-space: nowrap;
        }

        .stock-holdings-table thead th:nth-child(2) {
            text-align: left;
            padding-left: 12px;
        }

        .stock-holdings-table tbody td {
            padding: 12px 8px;
            border-bottom: 1px solid var(--primary-50);
            text-align: center;
            vertical-align: middle;
        }

        .stock-holdings-table tbody td:nth-child(2) {
            text-align: left;
            padding-left: 12px;
        }

        .stock-holdings-table tbody tr:last-child td {
            border-bottom: none;
        }

        .stock-holdings-table tbody tr:active {
            background: var(--primary-25);
        }

        .stock-holding-name-cell {
            min-width: 0;
        }

        .stock-flag {
            font-size: 24px;
            line-height: 1;
            display: inline-block;
            vertical-align: middle;
        }

        .stock-holding-market-cell {
            font-size: 12px;
            color: var(--text-secondary);
            white-space: nowrap;
            text-align: center;
        }

        .stock-holding-name {
            font-weight: 600;
            font-size: 12px;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stock-holding-code {
            font-size: 10px;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .stock-holding-weight-cell {
            text-align: center;
            font-size: 14px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .stock-holding-change-cell {
            text-align: center;
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
        }

        .stock-holding-change-cell.up {
            color: var(--chart-up);
        }

        .stock-holding-change-cell.down {
            color: var(--chart-down);
        }

        .stock-holdings-loading,
        .stock-holdings-empty {
            text-align: center;
            padding: 20px;
            color: var(--text-secondary);
            font-size: 13px;
        }



        /* === 移动端全屏提示弹框 === */
        .fs-prompt-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.5);
            padding: 20px;
        }

        .fs-prompt-box {
            background: var(--bg-surface, #fff);
            border-radius: var(--radius-md, 12px);
            padding: 24px 20px;
            width: 100%;
            max-width: 320px;
            box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.2));
            animation: fsPromptIn 0.25s ease-out;
        }

        @keyframes fsPromptIn {
            from { opacity: 0; transform: scale(0.92); }
            to   { opacity: 1; transform: scale(1); }
        }

        .fs-prompt-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary, #1a1a2e);
            text-align: center;
            margin-bottom: 10px;
        }

        .fs-prompt-desc {
            font-size: 12px;
            color: var(--text-secondary, #5a6fd6);
            line-height: 1.6;
            text-align: center;
            margin-bottom: 20px;
        }

        .fs-prompt-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .fs-prompt-btn {
            width: 100%;
            padding: 12px 0;
            border-radius: var(--radius-sm, 8px);
            font-size: 12px;
            font-weight: 500;
            border: none;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .fs-prompt-btn-primary {
            background: var(--primary-500, #5a6fd6);
            color: #fff;
        }

        .fs-prompt-btn-secondary {
            background: transparent;
            color: var(--text-secondary, #5a6fd6);
        }

        /* === 我的页面 === */
        .profile-container {
            margin-bottom: 80px;
            padding: 0 12px;
        }

        .profile-card {
            background: var(--bg-card);
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
            margin-bottom: 16px;
            overflow: hidden;
        }

        .profile-user-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
        }

        .profile-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--primary-500);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 600;
            flex-shrink: 0;
        }

        .profile-user-info {
            flex: 1;
            min-width: 0;
        }

        .profile-user-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .profile-user-status {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .profile-menu {
            display: flex;
            flex-direction: column;
        }

        .profile-menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: none;
            border: none;
            border-bottom: 1px solid var(--primary-100);
            width: 100%;
            text-align: left;
            font-size: 14px;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.2s;
            -webkit-tap-highlight-color: transparent;
        }

        .profile-menu-item:last-child {
            border-bottom: none;
        }

        .profile-menu-item:active {
            background: var(--primary-100);
        }

        .profile-menu-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: var(--primary-50);
            color: var(--primary-600);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .profile-menu-label {
            flex: 1;
            font-weight: 500;
        }

        .profile-menu-arrow {
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-menu-arrow svg {
            display: block;
        }

        .profile-switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
            flex-shrink: 0;
        }

        .profile-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .profile-switch-slider {
            position: absolute;
            cursor: pointer;
            inset: 0;
            background: var(--primary-200);
            border-radius: 24px;
            transition: 0.3s;
        }

        .profile-switch-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background: #fff;
            border-radius: 50%;
            transition: 0.3s;
        }

        .profile-switch input:checked + .profile-switch-slider {
            background: #0066cc;
        }

        .profile-switch input:checked + .profile-switch-slider:before {
            transform: translateX(20px);
        }

        .mobile-theme-picker {
            display: none;
            flex-direction: column;
            gap: 4px;
            padding: 8px 12px 12px;
            background: var(--primary-50);
            border-radius: 0 0 var(--radius-md) var(--radius-md);
            margin-top: -4px;
        }

        .mobile-theme-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            color: #333333;
            cursor: pointer;
            transition: all 0.15s;
            border: none;
            background: transparent;
            -webkit-appearance: none;
            appearance: none;
        }

        .mobile-theme-option.active {
            background: var(--primary-100);
            color: #3b5998;
            font-weight: 600;
        }

        [data-theme="binance"] .mobile-theme-option {
            color: #eaecef;
        }
        [data-theme="binance"] .mobile-theme-option.active {
            color: #fcd535;
        }

        .mobile-theme-swatch {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 1px solid var(--primary-200);
            flex-shrink: 0;
        }

        .mobile-theme-swatch.standard {
            background: #F5F0E8;
        }

        .mobile-theme-swatch.letter {
            background: #F8F5F0;
        }

        .mobile-theme-swatch.forest {
            background: #E8F5E9;
        }

        .mobile-theme-swatch.coral {
            background: #FFF3E0;
        }

        .mobile-theme-swatch.apple {
            background: #F5F5F7;
        }

        .mobile-theme-swatch.binance {
            background: #0b0e11;
            border-color: #fcd535;
        }

        .mobile-theme-modal-options {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 8px 0;
        }

        .mobile-page-title {
            display: block;
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 16px;
            padding: 0 12px;
        }

        .floating-search-btn {
            display: none;
            position: fixed;
            bottom: 96px;
            right: 16px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--primary-500);
            color: #fff;
            border: none;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            align-items: center;
            justify-content: center;
            z-index: 999;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        /* 搜索页面 */
        .search-page {
            display: none;
            position: fixed;
            inset: 0;
            background: inherit;
            z-index: 2000;
            flex-direction: column;
        }

        .search-page.active {
            display: flex;
        }

        .search-page-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
            background: var(--bg-card);
            box-shadow: var(--shadow-sm);
        }

        .search-page-back {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: var(--primary-50);
            color: var(--primary-600);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }

        .search-page-input-wrap {
            flex: 1;
            min-width: 0;
        }

        .search-page-input-wrap input {
            width: 100%;
            height: 40px;
            padding: 0 12px;
            border: 1px solid var(--primary-200);
            border-radius: var(--radius-sm);
            background: var(--bg-surface);
            font-size: 16px;
            color: var(--text-primary);
            box-sizing: border-box;
        }

        .search-page-input-wrap input:focus {
            outline: none;
            border-color: var(--primary-400);
        }

        .search-page-input-wrap input::placeholder {
            color: var(--text-primary);
            opacity: 0.5;
        }

        .search-page-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
        }

        .search-section {
            margin-bottom: 24px;
        }

        .search-page-submit {
            height: 40px;
            padding: 0 8px;
            border: none;
            background: none;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }

        .search-page-submit:active {
            color: var(--primary-700);
        }

        .search-page-results {
            display: none;
            max-height: 320px;
            overflow-y: auto;
            background: var(--bg-card);
            border-radius: 0 0 var(--radius-md) var(--radius-md);
            box-shadow: var(--shadow-lg);
            margin: 0 16px;
        }

        .search-page-results.active {
            display: block;
        }

        .search-result-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            border-bottom: 1px solid var(--primary-100);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:active {
            background: var(--primary-100);
        }

        .search-result-name {
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 500;
        }

        .search-result-code {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .search-section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 12px;
        }

        .search-clear-btn {
            font-size: 12px;
            color: var(--primary-500);
            background: none;
            border: none;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .search-history-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .search-history-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            border: 1px solid var(--primary-200);
            font-size: 13px;
            color: var(--text-primary);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .search-suggestions-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .search-suggestion-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px;
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .search-suggestion-item:active {
            background: var(--primary-100);
        }

        .search-suggestion-name {
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 500;
        }

        .search-suggestion-code {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .search-empty-tip {
            text-align: center;
            padding: 32px 16px;
            color: var(--text-secondary);
            font-size: 13px;
        }

        /* Binance 主题移动端适配 */
        [data-theme="binance"] .mobile-nav-bar {
            background: rgba(30, 35, 41, 0.88);
            border-color: rgba(71, 77, 87, 0.5);
            box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
        }

        [data-theme="binance"] .mobile-nav-item {
            color: #eaecef;
        }

        [data-theme="binance"] .mobile-nav-item.active {
            color: #fcd535;
        }

        [data-theme="binance"] .floating-search-btn {
            background: #474d57;
            color: #eaecef;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        [data-theme="binance"] .fs-prompt-btn-primary {
            color: #181a20;
        }

        [data-theme="binance"] .search-page-submit {
            color: var(--text-primary);
        }

        /* ========== QDII 盘前估值模块（移动端） ========== */
        #qdiiEstimatePage {
            background: var(--bg-warm);
        }

        #qdiiEstimatePageBody {
            padding: 0 20px 16px;
            will-change: transform;
        }

        .qdii-estimate-entry {
            margin: 10px 0;
            padding: 12px 16px;
        }

        .qdii-estimate-entry-title {
            font-size: 16px;
        }

        .qdii-estimate-entry-desc {
            font-size: 11px;
        }

        .qdii-estimate-notice {
            margin: 0 0 12px;
            padding: 8px 8px;
        }

        .qdii-estimate-notice-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--primary-800);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .qdii-notice-icon {
            flex-shrink: 0;
            vertical-align: middle;
        }

        .qdii-estimate-notice-body {
            font-size: 12px;
            color: var(--primary-500);
            line-height: 1.5;
            text-align: justify;
        }

        .qdii-estimate-fx-inline {
            margin: 0 0 4px;
            padding: 0 0;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
        }

        .qdii-estimate-fx-inline-label {
            font-size: 10px;
            color: var(--primary-400);
        }

        .qdii-estimate-fx-inline-value {
            font-size: 12px;
            font-weight: 700;
        }

        .qdii-estimate-card {
            margin: 0 0 10px;
            padding: 12px 16px;
        }

        .qdii-estimate-card-header {
            margin-bottom: 6px;
        }

        .qdii-estimate-card-name {
            font-size: 16px;
            font-weight: 700;
        }

        .qdii-estimate-card-change {
            font-size: 16px;
        }

        .qdii-estimate-card-body {
            margin-bottom: 6px;
        }

        .qdii-estimate-card-row {
            padding: 3px 0;
        }

        .qdii-estimate-card-label {
            font-size: 12px;
            color: var(--primary-400);
        }

        .qdii-estimate-card-value {
            font-size: 12px;
            font-weight: 600;
        }

        .qdii-estimate-card-holdings {
            padding-top: 6px;
        }

        .qdii-estimate-holding-row {
            font-size: 12px;
            padding: 5px 0;
            border-bottom: 1px solid var(--primary-100);
        }

        .qdii-estimate-holding-row:last-child {
            border-bottom: none;
        }
