        /* === Theme: 默认 (v6.0 原始系统样式) === */
        [data-theme="default"] {
            --bg-warm: #F0F8FF;
            --bg-surface: #FFFFFF;
            --bg-card: rgba(255, 255, 255, 0.95);
            --primary-25: #F0F5FF;
            --primary-50: #E6F0FF;
            --primary-100: #D9E6F2;
            --primary-200: #B3CCE6;
            --primary-300: #8AB3D9;
            --primary-400: #667eea;
            --primary-500: #5a6fd6;
            --primary-600: #4e60c4;
            --primary-700: #4251b2;
            --primary-800: #3642a0;
            --primary-900: #2a338e;
            --accent-warm: #faad14;
            --accent-green: #229954;
            --accent-green-bg: #F6FFED;
            --accent-red: #DA625D;
            --accent-red-bg: #FFF1F0;
            --accent-blue-bg: #E6F7FF;
            --accent-yellow-bg: #FFFBE6;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 2px 8px rgba(0,0,0,0.12);
            --shadow-lg: 0 8px 32px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.08);
            --radius-sm: 8px;
            --radius-md: 12px;
            --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            --font-mono: 'SF Mono', 'SFMono-Regular', ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Fira Code', monospace;
            --text-primary: #1a1a2e;
            --text-secondary: var(--primary-500);
            --chart-up: #DA625D;
            --chart-down: #229954;
            --chart-ma: #4a90d9;
            --chart-secondary: #9b59b6;
            --chart-tertiary: #f39c12;
            --grid-line: rgba(100, 116, 139, 0.08);
            --border-color: #B3CCE6;
        }

        [data-theme="default"] body {
            background: linear-gradient(135deg, #F0F8FF 0%, #FAF0E6 200%);
        }


        [data-theme="default"] .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        [data-theme="default"] .btn-primary:hover {
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        [data-theme="default"] .balance-table thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        [data-theme="default"] .balance-table tfoot td {
            border-top-color: #667eea;
        }

        [data-theme="default"] .dlv-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        [data-theme="default"] .dlv-table-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        [data-theme="default"] .divlowvol-table thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        [data-theme="default"] .mobile-fund-table thead,
        [data-theme="default"] .stock-holdings-table thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        [data-theme="default"] .mobile-fund-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        [data-theme="default"] .autocomplete-list {
            border-color: #667eea;
        }

        [data-theme="default"] .section-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        [data-theme="default"] .period-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: transparent;
        }

        [data-theme="default"] .nav-table thead,
        [data-theme="default"] .nav-table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
        }

        [data-theme="default"] .fund-badge.holding {
            background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
        }

        :root {
            /* === Theme: 信笺 (default) === */
            --bg-warm: #F8F7F4;
            --bg-surface: #FFFFFF;
            --bg-card: rgba(255, 255, 255, 0.95);
            --primary-25: #F8FAFC;
            --primary-50: #F1F5F9;
            --primary-100: #E2E8F0;
            --primary-200: #CBD5E1;
            --primary-300: #94A3B8;
            --primary-400: #64748B;
            --primary-500: #475569;
            --primary-600: #334155;
            --primary-700: #1E293B;
            --primary-800: #0F172A;
            --primary-900: #020617;
            --accent-warm: #D4A574;
            --accent-green: #229954;
            --accent-green-bg: #EDF2EE;
            --accent-red: #DA625D;
            --accent-red-bg: #F5EEEE;
            --accent-blue-bg: #EDF0F4;
            --accent-yellow-bg: #F5F0E8;
            --shadow-sm: 0 1px 3px rgba(100,116,139,0.06), 0 1px 2px rgba(100,116,139,0.04);
            --shadow-md: 0 2px 8px rgba(100,116,139,0.08);
            --shadow-lg: 0 10px 25px rgba(100,116,139,0.1), 0 4px 6px rgba(100,116,139,0.05);
            --radius-sm: 8px;
            --radius-md: 12px;
            --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            --font-mono: 'SF Mono', 'SFMono-Regular', ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Fira Code', monospace;
            --text-primary: #1a1a2e;
            --text-secondary: var(--primary-500);
            --chart-up: #DA625D;
            --chart-down: #229954;
            --chart-ma: #64748B;
            --chart-secondary: #8B7E74;
            --chart-tertiary: #D4A574;
            --grid-line: rgba(100, 116, 139, 0.08);
        }

        [data-theme="default"] {
            --bg-warm: #F0F8FF;
        }

        /* === Theme: 森林 === */
        [data-theme="forest"] {
            --bg-warm: #F0F4F1;
            --bg-surface: #FFFFFF;
            --bg-card: rgba(255, 255, 255, 0.95);
            --primary-25: #F1F8F2;
            --primary-50: #E3F0E5;
            --primary-100: #C8E1CC;
            --primary-200: #9DC9A3;
            --primary-300: #7AAE82;
            --primary-400: #5D9465;
            --primary-500: #4A7A52;
            --primary-600: #3D6343;
            --primary-700: #2F4D34;
            --primary-800: #1F3523;
            --primary-900: #0F1C12;
            --accent-warm: #C49A6C;
            --accent-green: #229954;
            --accent-green-bg: #F6FFED;
            --accent-red: #DA625D;
            --accent-red-bg: #FFF1F0;
            --accent-blue-bg: #E5EDF0;
            --accent-yellow-bg: #F5F0E0;
            --shadow-sm: 0 1px 3px rgba(77,107,82,0.06), 0 1px 2px rgba(77,107,82,0.04);
            --shadow-md: 0 2px 8px rgba(77,107,82,0.08);
            --shadow-lg: 0 10px 25px rgba(77,107,82,0.1), 0 4px 6px rgba(77,107,82,0.05);
            --text-primary: #1a1a2e;
            --text-secondary: var(--primary-500);
            --chart-up: #DA625D;
            --chart-down: #229954;
            --chart-ma: #5D9465;
            --chart-secondary: #C49A6C;
            --chart-tertiary: #7AAE82;
            --grid-line: rgba(93, 148, 101, 0.08);
            --border-color: #9DC9A3;
        }

        [data-theme="forest"] .mobile-fund-table thead,
        [data-theme="forest"] .stock-holdings-table thead,
        [data-theme="forest"] .divlowvol-table thead,
        [data-theme="forest"] .balance-table thead {
            background: #5D9465;
        }

        [data-theme="forest"] .balance-table tfoot td {
            border-top-color: #5D9465;
        }

        [data-theme="forest"] .period-tab.active {
            background: #5D9465;
            border-color: #5D9465;
        }

        [data-theme="forest"] .nav-table thead,
        [data-theme="forest"] .nav-table th {
            background: #5D9465;
            color: #fff;
        }

        /* === Theme: 珊瑚 === */
        [data-theme="coral"] {
            --bg-warm: #FAF5F3;
            --bg-surface: #FFFFFF;
            --bg-card: rgba(255, 255, 255, 0.95);
            --primary-25: #FDF5F3;
            --primary-50: #F9EBE7;
            --primary-100: #F0D5CC;
            --primary-200: #E2B5A6;
            --primary-300: #D49682;
            --primary-400: #C47860;
            --primary-500: #B5634A;
            --primary-600: #9A5240;
            --primary-700: #7A4235;
            --primary-800: #5A3129;
            --primary-900: #3A201B;
            --accent-warm: #D4885A;
            --accent-green: #229954;
            --accent-green-bg: #F6FFED;
            --accent-red: #DA625D;
            --accent-red-bg: #FFF1F0;
            --accent-blue-bg: #F0E8E5;
            --accent-yellow-bg: #F5F0E0;
            --shadow-sm: 0 1px 3px rgba(120,80,70,0.06), 0 1px 2px rgba(120,80,70,0.04);
            --shadow-md: 0 2px 8px rgba(120,80,70,0.08);
            --shadow-lg: 0 10px 25px rgba(120,80,70,0.1), 0 4px 6px rgba(120,80,70,0.05);
            --text-primary: #1a1a2e;
            --text-secondary: var(--primary-500);
            --chart-up: #DA625D;
            --chart-down: #229954;
            --chart-ma: #C47860;
            --chart-secondary: #D4885A;
            --chart-tertiary: #B5634A;
            --grid-line: rgba(180, 99, 74, 0.08);
            --border-color: #E2B5A6;
        }

        [data-theme="coral"] .mobile-fund-table thead,
        [data-theme="coral"] .stock-holdings-table thead,
        [data-theme="coral"] .divlowvol-table thead,
        [data-theme="coral"] .balance-table thead {
            background: #C47860;
        }

        [data-theme="coral"] .balance-table tfoot td {
            border-top-color: #C47860;
        }

        [data-theme="coral"] .period-tab.active {
            background: #C47860;
            border-color: #C47860;
        }

        [data-theme="coral"] .nav-table thead,
        [data-theme="coral"] .nav-table th {
            background: #C47860;
            color: #fff;
        }

        /* === Theme: 苹果 (Apple Design v2 — per DESIGN-apple.md) === */
        [data-theme="apple"] {
            --bg-warm: #f5f5f7;
            --bg-surface: #ffffff;
            --bg-card: #ffffff;
            --primary-25: #f5f5f7;
            --primary-50: #f2f2f7;
            --primary-100: #e5e5ea;
            --primary-200: #d1d1d6;
            --primary-300: #aeaeb2;
            --primary-400: #8e8e93;
            --primary-500: #86868b;
            --primary-600: #636366;
            --primary-700: #48484a;
            --primary-800: #3a3a3c;
            --primary-900: #1d1d1f;
            --accent-warm: #ff9500;
            --accent-green: #34c759;
            --accent-green-bg: rgba(52, 199, 89, 0.08);
            --accent-red: #ff3b30;
            --accent-red-bg: rgba(255, 59, 48, 0.08);
            --accent-blue-bg: rgba(0, 102, 204, 0.08);
            --accent-yellow-bg: rgba(255, 204, 0, 0.08);
            --shadow-sm: none;
            --shadow-md: none;
            --shadow-lg: none;
            --radius-sm: 8px;
            --radius-md: 11px;
            --radius-lg: 18px;
            --font-sans: 'SF Pro Display', 'SF Pro Text', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            --font-mono: 'SF Mono', 'SFMono-Regular', ui-monospace, monospace;
            --text-primary: #1d1d1f;
            --text-secondary: #7a7a7a;
            --chart-up: #ff3b30;
            --chart-down: #34c759;
            --chart-ma: #0066cc;
            --chart-secondary: #af52de;
            --chart-tertiary: #ff9500;
            --grid-line: rgba(0, 0, 0, 0.05);
            --border-color: #d1d1d6;
        }

        /* === Theme: Binance === */
        [data-theme="binance"] {
            --bg-warm: #0b0e11;
            --bg-surface: #1e2329;
            --bg-card: #1e2329;
            --primary-25: #181a20;
            --primary-50: #2b3139;
            --primary-100: #2b3139;
            --primary-200: #474d57;
            --primary-300: #707a8a;
            --primary-400: #929aa5;
            --primary-500: #eaecef;
            --primary-600: #ffffff;
            --primary-700: #ffffff;
            --primary-800: #ffffff;
            --primary-900: #ffffff;
            --accent-warm: #fcd535;
            --accent-green: #229954;
            --accent-green-bg: rgba(14, 203, 129, 0.1);
            --accent-red: #da625d;
            --accent-red-bg: rgba(246, 70, 93, 0.1);
            --accent-blue-bg: rgba(59, 130, 246, 0.1);
            --accent-yellow-bg: rgba(252, 213, 53, 0.1);
            --shadow-sm: none;
            --shadow-md: none;
            --shadow-lg: none;
            --radius-sm: 4px;
            --radius-md: 6px;
            --radius-lg: 8px;
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
            --text-primary: #eaecef;
            --text-secondary: #707a8a;
            --chart-up: #da625d;
            --chart-down: #229954;
            --chart-ma: #707a8a;
            --chart-secondary: #fcd535;
            --chart-tertiary: #2dbdb6;
            --grid-line: rgba(255, 255, 255, 0.05);
            --border-color: #474d57;
        }

        [data-theme="binance"] body {
            background: #0b0e11;
        }

        [data-theme="apple"] body {
            background: #f5f5f7;
        }

        [data-theme="apple"] .header,
        [data-theme="apple"] .fund-card,
        [data-theme="apple"] .overview-card,
        [data-theme="apple"] .modal-content,
        [data-theme="apple"] .stat-card,
        [data-theme="apple"] .rebalance-card {
            background: #ffffff;
            border: 0.5px solid rgba(0, 0, 0, 0.08);
            box-shadow: none;
        }

        [data-theme="apple"] .metric-card {
            background: #ffffff;
            border: 0.5px solid rgba(0, 0, 0, 0.08);
            box-shadow: none;
        }

        [data-theme="apple"] .fund-card {
            border-radius: 18px;
        }

        [data-theme="apple"] .btn {
            border-radius: 9999px;
            font-weight: 400;
            letter-spacing: -0.224px;
        }

        [data-theme="apple"] .btn-primary {
            background: #0066cc;
            color: #ffffff;
            border: none;
        }

        [data-theme="apple"] .btn-primary:hover {
            background: #0071e3;
            box-shadow: none;
            transform: none;
        }

        [data-theme="apple"] .btn-primary:active {
            transform: scale(0.95);
        }

        [data-theme="apple"] .btn-secondary {
            background: #e5e5ea;
            color: #1d1d1f;
            border: none;
        }

        [data-theme="apple"] .btn-secondary:hover {
            background: #d1d1d6;
        }

        [data-theme="apple"] .btn-secondary:active {
            transform: scale(0.95);
        }

        [data-theme="apple"] .backup-controls .btn-secondary,
        [data-theme="apple"] .backup-controls .btn-secondary:first-child {
            background: #0066cc;
            color: #ffffff;
            border-radius: 9999px;
            border: none;
        }

        [data-theme="apple"] .backup-controls .btn-secondary:hover,
        [data-theme="apple"] .backup-controls .btn-secondary:first-child:hover {
            background: #0071e3;
            box-shadow: none;
            transform: none;
            text-decoration: none;
        }

        [data-theme="apple"] .backup-controls .btn-secondary:active,
        [data-theme="apple"] .backup-controls .btn-secondary:first-child:active {
            transform: scale(0.95);
        }

        [data-theme="apple"] .add-fund .btn-primary {
            background: #0066cc;
            border-radius: 9999px;
        }

        [data-theme="apple"] .add-fund .btn-primary:hover {
            background: #0071e3;
        }

        [data-theme="apple"] .fund-list-actions .btn:not(.btn-danger),
        [data-theme="apple"] .fund-card .btn:not(.btn-danger),
        [data-theme="apple"] .fund-detail-modal-content .btn:not(.btn-danger),
        [data-theme="apple"] .position-actions .btn:not(.btn-danger) {
            background: transparent;
            color: #0066cc;
            border: none;
            border-radius: 9999px;
            white-space: nowrap;
        }

        [data-theme="apple"] .fund-list-actions .btn:not(.btn-danger):hover,
        [data-theme="apple"] .fund-card .btn:not(.btn-danger):hover,
        [data-theme="apple"] .fund-detail-modal-content .btn:not(.btn-danger):hover,
        [data-theme="apple"] .position-actions .btn:not(.btn-danger):hover {
            text-decoration: underline;
            transform: none;
        }

        [data-theme="apple"] .fund-list-actions .btn:not(.btn-danger)::after,
        [data-theme="apple"] .fund-card .btn:not(.btn-danger)::after,
        [data-theme="apple"] .fund-detail-modal-content .btn:not(.btn-danger)::after,
        [data-theme="apple"] .position-actions .btn:not(.btn-danger)::after {
            content: "";
            display: inline-block;
            width: 0.55em;
            height: 0.55em;
            margin-left: 4px;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M782.222222 512L307.2 1012.622222c-14.222222 11.377778-39.822222 14.222222-51.2 2.844445-8.533333-8.533333-14.222222-28.444444 2.844444-45.511111l440.888889-455.111112L258.844444 56.888889S241.777778 28.444444 264.533333 14.222222c19.911111-14.222222 34.133333-8.533333 42.666667 0L782.222222 512z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M782.222222 512L307.2 1012.622222c-14.222222 11.377778-39.822222 14.222222-51.2 2.844445-8.533333-8.533333-14.222222-28.444444 2.844444-45.511111l440.888889-455.111112L258.844444 56.888889S241.777778 28.444444 264.533333 14.222222c19.911111-14.222222 34.133333-8.533333 42.666667 0L782.222222 512z'/%3E%3C/svg%3E");
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
            background-color: currentColor;
            vertical-align: middle;
        }

        [data-theme="apple"] .mobile-fund-btn {
            background: transparent;
            color: #0066cc;
            border: none;
            border-radius: 9999px;
        }

        [data-theme="apple"] .mobile-fund-btn:hover {
            text-decoration: underline;
            transform: none;
        }

        [data-theme="apple"] .mobile-fund-btn::after {
            content: "";
            display: inline-block;
            width: 0.55em;
            height: 0.55em;
            margin-left: 4px;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M782.222222 512L307.2 1012.622222c-14.222222 11.377778-39.822222 14.222222-51.2 2.844445-8.533333-8.533333-14.222222-28.444444 2.844444-45.511111l440.888889-455.111112L258.844444 56.888889S241.777778 28.444444 264.533333 14.222222c19.911111-14.222222 34.133333-8.533333 42.666667 0L782.222222 512z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M782.222222 512L307.2 1012.622222c-14.222222 11.377778-39.822222 14.222222-51.2 2.844445-8.533333-8.533333-14.222222-28.444444 2.844444-45.511111l440.888889-455.111112L258.844444 56.888889S241.777778 28.444444 264.533333 14.222222c19.911111-14.222222 34.133333-8.533333 42.666667 0L782.222222 512z'/%3E%3C/svg%3E");
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
            background-color: currentColor;
            vertical-align: middle;
        }

        [data-theme="apple"] .mobile-fund-btn-delete {
            background: transparent;
            color: #ff3b30;
        }

        [data-theme="apple"] .mobile-fund-btn-delete::after {
            content: "";
        }

        [data-theme="apple"] .fund-list-actions .btn-danger,
        [data-theme="apple"] .fund-card .btn-danger,
        [data-theme="apple"] .fund-detail-modal-content .btn-danger,
        [data-theme="apple"] .position-actions .btn-danger {
            background: transparent;
            color: #ff3b30;
            border: none;
            border-radius: 9999px;
            white-space: nowrap;
        }

        [data-theme="apple"] .fund-list-actions .btn-danger:hover,
        [data-theme="apple"] .fund-card .btn-danger:hover,
        [data-theme="apple"] .fund-detail-modal-content .btn-danger:hover,
        [data-theme="apple"] .position-actions .btn-danger:hover {
            text-decoration: underline;
            transform: none;
        }

        [data-theme="apple"] .fund-list-actions .btn-danger::after,
        [data-theme="apple"] .fund-card .btn-danger::after,
        [data-theme="apple"] .fund-detail-modal-content .btn-danger::after,
        [data-theme="apple"] .position-actions .btn-danger::after {
            content: "";
            display: inline-block;
            width: 0.55em;
            height: 0.55em;
            margin-left: 4px;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M782.222222 512L307.2 1012.622222c-14.222222 11.377778-39.822222 14.222222-51.2 2.844445-8.533333-8.533333-14.222222-28.444444 2.844444-45.511111l440.888889-455.111112L258.844444 56.888889S241.777778 28.444444 264.533333 14.222222c19.911111-14.222222 34.133333-8.533333 42.666667 0L782.222222 512z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M782.222222 512L307.2 1012.622222c-14.222222 11.377778-39.822222 14.222222-51.2 2.844445-8.533333-8.533333-14.222222-28.444444 2.844444-45.511111l440.888889-455.111112L258.844444 56.888889S241.777778 28.444444 264.533333 14.222222c19.911111-14.222222 34.133333-8.533333 42.666667 0L782.222222 512z'/%3E%3C/svg%3E");
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
            background-color: currentColor;
            vertical-align: middle;
        }

        [data-theme="apple"] .fund-list-actions .btn-warning,
        [data-theme="apple"] .fund-card .btn-warning,
        [data-theme="apple"] .fund-detail-modal-content .btn-warning,
        [data-theme="apple"] .position-actions .btn-warning {
            background: transparent;
            color: #ff9500;
            border: none;
            border-radius: 9999px;
            white-space: nowrap;
        }

        [data-theme="apple"] .fund-list-actions .btn-warning:hover,
        [data-theme="apple"] .fund-card .btn-warning:hover,
        [data-theme="apple"] .fund-detail-modal-content .btn-warning:hover,
        [data-theme="apple"] .position-actions .btn-warning:hover {
            text-decoration: underline;
            transform: none;
        }

        [data-theme="apple"] .fund-list-actions .btn-warning::after,
        [data-theme="apple"] .fund-card .btn-warning::after,
        [data-theme="apple"] .fund-detail-modal-content .btn-warning::after,
        [data-theme="apple"] .position-actions .btn-warning::after {
            content: "";
            display: inline-block;
            width: 0.55em;
            height: 0.55em;
            margin-left: 4px;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M782.222222 512L307.2 1012.622222c-14.222222 11.377778-39.822222 14.222222-51.2 2.844445-8.533333-8.533333-14.222222-28.444444 2.844444-45.511111l440.888889-455.111112L258.844444 56.888889S241.777778 28.444444 264.533333 14.222222c19.911111-14.222222 34.133333-8.533333 42.666667 0L782.222222 512z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M782.222222 512L307.2 1012.622222c-14.222222 11.377778-39.822222 14.222222-51.2 2.844445-8.533333-8.533333-14.222222-28.444444 2.844444-45.511111l440.888889-455.111112L258.844444 56.888889S241.777778 28.444444 264.533333 14.222222c19.911111-14.222222 34.133333-8.533333 42.666667 0L782.222222 512z'/%3E%3C/svg%3E");
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
            background-color: currentColor;
            vertical-align: middle;
        }

        [data-theme="apple"] .fund-detail-modal-content {
            border: none;
            box-shadow: none;
        }

        [data-theme="apple"] .fund-detail-modal-content .fund-card {
            border: none;
            box-shadow: none;
        }

        [data-theme="apple"] .mobile-fund-sheet-content {
            border: none;
            background: var(--bg-surface);
            box-shadow: none;
        }

        [data-theme="apple"] .mobile-fund-sheet-content .fund-card {
            border: none;
            box-shadow: none;
        }

        [data-theme="apple"] .sync-config-content {
            background: #ffffff;
            border: 0.5px solid rgba(0, 0, 0, 0.08);
            border-radius: 18px;
            box-shadow: none;
        }

        [data-theme="apple"] .sync-config-content .btn-secondary {
            background: transparent;
            color: #0066cc;
        }

        [data-theme="apple"] .sync-config-content .btn-danger {
            background: transparent;
            color: #ff3b30;
        }

        [data-theme="apple"] .fund-badge.holding {
            background: #ff3b30;
        }

        [data-theme="apple"] .user-panel.online,
        [data-theme="apple"] .user-panel.synced {
            color: #0066cc;
        }

        [data-theme="apple"] .user-panel.online .user-panel-dot,
        [data-theme="apple"] .user-panel.synced .user-panel-dot {
            background: #0066cc;
            box-shadow: 0 0 3px rgba(0, 102, 204, 0.6);
        }

        [data-theme="apple"] .fund-badge.watching {
            background: #ff9500;
        }

        [data-theme="apple"] input[type="text"],
        [data-theme="apple"] input[type="number"],
        [data-theme="apple"] select {
            border-radius: 9999px;
            border: 0.5px solid rgba(0, 0, 0, 0.08);
            background: #ffffff;
        }

        [data-theme="apple"] input[type="text"]:focus,
        [data-theme="apple"] input[type="number"]:focus,
        [data-theme="apple"] select:focus {
            outline: 2px solid #0071e3;
            border-color: transparent;
        }

        [data-theme="apple"] input[type="text"].balance-target-total-input,
        [data-theme="apple"] input[type="number"].balance-target-total-input,
        [data-theme="apple"] input[type="text"].balance-ratio-input,
        [data-theme="apple"] input[type="number"].balance-ratio-input {
            border: none !important;
            border-bottom: 2px solid var(--primary-100) !important;
            border-radius: 0 !important;
            background: transparent !important;
        }

        [data-theme="apple"] input[type="text"].balance-target-total-input:focus,
        [data-theme="apple"] input[type="number"].balance-target-total-input:focus,
        [data-theme="apple"] input[type="text"].balance-ratio-input:focus,
        [data-theme="apple"] input[type="number"].balance-ratio-input:focus {
            border-bottom-color: #0066cc !important;
            outline: none !important;
        }

        [data-theme="apple"] .section-tab.active {
            background: #0066cc;
        }

        [data-theme="apple"] .dlv-tab.active,
        [data-theme="apple"] .dlv-table-tab.active {
            background: #0066cc;
        }

        [data-theme="apple"] .balance-table thead {
            background: #0066cc;
        }

        [data-theme="apple"] .balance-table tfoot td {
            border-top-color: #0066cc;
        }

        [data-theme="apple"] .divlowvol-table thead {
            background: #0066cc;
        }

        [data-theme="apple"] .mobile-fund-table thead,
        [data-theme="apple"] .stock-holdings-table thead {
            background: #0066cc;
        }

        [data-theme="apple"] .autocomplete-list {
            border-color: #0066cc;
        }

        [data-theme="apple"] .period-tab.active {
            background: #0066cc;
            border-color: #0066cc;
        }

        [data-theme="apple"] .nav-table thead,
        [data-theme="apple"] .nav-table th {
            background: #0066cc;
            color: #fff;
        }

        /* === Binance component overrides === */
        [data-theme="binance"] .header,
        [data-theme="binance"] .fund-card,
        [data-theme="binance"] .overview-card,
        [data-theme="binance"] .modal-content,
        [data-theme="binance"] .stat-card,
        [data-theme="binance"] .rebalance-card {
            background: #1e2329;
            border: 1px solid #2b3139;
            box-shadow: none;
        }

        [data-theme="binance"] .metric-card {
            background: #1e2329;
            border: 1px solid #2b3139;
            box-shadow: none;
        }

        [data-theme="binance"] .fund-card {
            border-radius: 8px;
        }

        [data-theme="binance"] .btn {
            border-radius: 6px;
            font-weight: 600;
            letter-spacing: 0;
        }

        [data-theme="binance"] .btn-primary {
            background: #fcd535;
            color: #181a20;
            border: none;
        }

        [data-theme="binance"] .btn-primary:hover {
            background: #f0b90b;
            box-shadow: none;
            transform: none;
        }

        [data-theme="binance"] .btn-primary:active {
            transform: scale(0.95);
        }

        [data-theme="binance"] .btn-secondary {
            background: #2b3139;
            color: #eaecef;
            border: none;
        }

        [data-theme="binance"] .btn-secondary:hover {
            background: #474d57;
        }

        [data-theme="binance"] .btn-secondary:active {
            transform: scale(0.95);
        }

        [data-theme="binance"] .backup-controls .btn-secondary,
        [data-theme="binance"] .backup-controls .btn-secondary:first-child {
            background: #fcd535;
            color: #181a20;
            border-radius: 6px;
            border: none;
        }

        [data-theme="binance"] .backup-controls .btn-secondary:hover,
        [data-theme="binance"] .backup-controls .btn-secondary:first-child:hover {
            background: #f0b90b;
            box-shadow: none;
            transform: none;
            text-decoration: none;
        }

        [data-theme="binance"] .backup-controls .btn-secondary:active,
        [data-theme="binance"] .backup-controls .btn-secondary:first-child:active {
            transform: scale(0.95);
        }

        [data-theme="binance"] .add-fund .btn-primary {
            background: #fcd535;
            color: #181a20;
            border-radius: 6px;
        }

        [data-theme="binance"] .add-fund .btn-primary:hover {
            background: #f0b90b;
        }

        /* Binance: fund action buttons — solid style, no text-link "›" suffix */

        /* 买入 (btn-secondary) — trading-up green */
        [data-theme="binance"] .fund-list-actions .btn-secondary,
        [data-theme="binance"] .fund-card .btn-secondary,
        [data-theme="binance"] .fund-detail-modal-content .btn-secondary,
        [data-theme="binance"] .position-actions .btn-secondary {
            background: #0ecb81;
            color: #ffffff;
            border: none;
            border-radius: 6px;
        }

        [data-theme="binance"] .fund-list-actions .btn-secondary:hover,
        [data-theme="binance"] .fund-card .btn-secondary:hover,
        [data-theme="binance"] .fund-detail-modal-content .btn-secondary:hover,
        [data-theme="binance"] .position-actions .btn-secondary:hover {
            background: #0ecb81;
            filter: brightness(1.1);
            transform: none;
        }

        /* 卖出 (btn-warning) — trading-down red */
        [data-theme="binance"] .fund-list-actions .btn-warning,
        [data-theme="binance"] .fund-card .btn-warning,
        [data-theme="binance"] .fund-detail-modal-content .btn-warning,
        [data-theme="binance"] .position-actions .btn-warning {
            background: #f6465d;
            color: #ffffff;
            border: none;
            border-radius: 6px;
        }

        [data-theme="binance"] .fund-list-actions .btn-warning:hover,
        [data-theme="binance"] .fund-card .btn-warning:hover,
        [data-theme="binance"] .fund-detail-modal-content .btn-warning:hover,
        [data-theme="binance"] .position-actions .btn-warning:hover {
            background: #f6465d;
            filter: brightness(1.1);
            transform: none;
        }

        /* 删除 (btn-danger) — solid dark surface + red text */
        [data-theme="binance"] .fund-list-actions .btn-danger,
        [data-theme="binance"] .fund-card .btn-danger,
        [data-theme="binance"] .fund-detail-modal-content .btn-danger,
        [data-theme="binance"] .position-actions .btn-danger {
            background: #2b3139;
            color: #f6465d;
            border: none;
            border-radius: 6px;
        }

        [data-theme="binance"] .fund-list-actions .btn-danger:hover,
        [data-theme="binance"] .fund-card .btn-danger:hover,
        [data-theme="binance"] .fund-detail-modal-content .btn-danger:hover,
        [data-theme="binance"] .position-actions .btn-danger:hover {
            background: #474d57;
            transform: none;
        }

        /* 详情 (btn-primary) — primary yellow */
        [data-theme="binance"] .fund-list-actions .btn-primary,
        [data-theme="binance"] .fund-card .btn-primary,
        [data-theme="binance"] .fund-detail-modal-content .btn-primary,
        [data-theme="binance"] .position-actions .btn-primary {
            background: #fcd535;
            color: #181a20;
            border: none;
            border-radius: 6px;
        }

        [data-theme="binance"] .fund-list-actions .btn-primary:hover,
        [data-theme="binance"] .fund-card .btn-primary:hover,
        [data-theme="binance"] .fund-detail-modal-content .btn-primary:hover,
        [data-theme="binance"] .position-actions .btn-primary:hover {
            background: #f0b90b;
            transform: none;
        }

        /* Mobile fund action buttons */
        [data-theme="binance"] .mobile-fund-btn {
            background: #0ecb81;
            color: #ffffff;
            border: none;
            border-radius: 6px;
        }

        [data-theme="binance"] .mobile-fund-btn:hover {
            background: #0ecb81;
            filter: brightness(1.1);
            transform: none;
        }

        [data-theme="binance"] .mobile-fund-btn-delete {
            background: #2b3139;
            color: #f6465d;
        }

        [data-theme="binance"] .mobile-fund-btn-delete:hover {
            background: #474d57;
        }

        [data-theme="binance"] .fund-detail-modal-content {
            border: 1px solid #2b3139;
            box-shadow: none;
        }

        [data-theme="binance"] .fund-detail-modal-content .fund-card {
            border: none;
            box-shadow: none;
        }

        [data-theme="binance"] .mobile-fund-sheet-content {
            border: none;
            background: var(--bg-surface);
            box-shadow: none;
        }

        [data-theme="binance"] .mobile-fund-sheet-content .fund-card {
            border: none;
            box-shadow: none;
        }

        [data-theme="binance"] .sync-config-content {
            background: #1e2329;
            border: 1px solid #2b3139;
            border-radius: 8px;
            box-shadow: none;
        }

        [data-theme="binance"] .sync-config-content .btn-secondary {
            background: transparent;
            color: #fcd535;
        }

        [data-theme="binance"] .sync-config-content .btn-danger {
            background: #2b3139;
            color: #f6465d;
        }

        [data-theme="binance"] .sync-config-content .btn-danger:hover {
            background: #474d57;
        }

        [data-theme="binance"] .fund-badge.holding {
            background: #f6465d;
        }

        [data-theme="binance"] .user-panel.online,
        [data-theme="binance"] .user-panel.synced {
            color: #0ecb81;
        }

        [data-theme="binance"] .user-panel.online .user-panel-dot,
        [data-theme="binance"] .user-panel.synced .user-panel-dot {
            background: #0ecb81;
            box-shadow: 0 0 3px rgba(14, 203, 129, 0.6);
        }

        [data-theme="binance"] .user-panel.offline {
            color: #707a8a;
        }

        [data-theme="binance"] .fund-badge.watching {
            background: #fcd535;
            color: #181a20;
        }

        [data-theme="binance"] input[type="text"],
        [data-theme="binance"] input[type="number"],
        [data-theme="binance"] select {
            border-radius: 6px;
            border: 1px solid #2b3139;
            background: #1e2329;
            color: #eaecef;
        }

        [data-theme="binance"] input[type="text"]:focus,
        [data-theme="binance"] input[type="number"]:focus,
        [data-theme="binance"] select:focus {
            outline: none;
            border-color: #fcd535;
            box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.2);
        }

        [data-theme="binance"] input[type="text"].balance-target-total-input,
        [data-theme="binance"] input[type="number"].balance-target-total-input,
        [data-theme="binance"] input[type="text"].balance-ratio-input,
        [data-theme="binance"] input[type="number"].balance-ratio-input {
            border: none !important;
            border-bottom: 2px solid var(--primary-100) !important;
            border-radius: 0 !important;
            background: transparent !important;
            color: var(--text-primary) !important;
        }

        [data-theme="binance"] input[type="text"].balance-target-total-input:focus,
        [data-theme="binance"] input[type="number"].balance-target-total-input:focus,
        [data-theme="binance"] input[type="text"].balance-ratio-input:focus,
        [data-theme="binance"] input[type="number"].balance-ratio-input:focus {
            border-bottom-color: #fcd535 !important;
            outline: none !important;
            box-shadow: none !important;
        }

        [data-theme="binance"] .section-tab.active {
            background: #fcd535;
            color: #181a20;
        }

        [data-theme="binance"] .dlv-tab.active,
        [data-theme="binance"] .dlv-table-tab.active {
            background: #fcd535;
            color: #181a20;
        }

        [data-theme="binance"] .balance-table thead {
            background: #fcd535;
            color: #181a20;
        }

        [data-theme="binance"] .balance-table tfoot td {
            border-top-color: #fcd535;
        }

        [data-theme="binance"] .divlowvol-table thead {
            background: #fcd535;
            color: #181a20;
        }

        [data-theme="binance"] .mobile-fund-table thead,
        [data-theme="binance"] .stock-holdings-table thead {
            background: #fcd535;
            color: #181a20;
        }

        [data-theme="binance"] .autocomplete-list {
            border-color: #fcd535;
            background: #1e2329;
        }

        [data-theme="binance"] .period-tab.active {
            background: #fcd535;
            color: #181a20;
            border-color: #fcd535;
        }

        [data-theme="binance"] .nav-table thead,
        [data-theme="binance"] .nav-table th {
            background: #fcd535;
            color: #181a20;
        }

        [data-theme="binance"] .sort-dropdown-item:hover {
            background: #2b3139;
            color: #eaecef;
        }

        [data-theme="binance"] .sort-dropdown-item.active {
            background: #2b3139;
            color: #fcd535;
        }

        [data-theme="binance"] .fund-list-header {
            background: #1e2329;
            border-bottom-color: #2b3139;
        }

        [data-theme="binance"] .position-info {
            background: #181a20;
            border-color: #2b3139;
        }

        [data-theme="binance"] .mobile-fund-sheet-content {
            background: #1e2329;
        }

        /* === Binance comprehensive overrides === */
        [data-theme="binance"] .modal {
            background: rgba(0, 0, 0, 0.75);
        }

        [data-theme="binance"] .modal-content {
            background: #1e2329;
            border: 1px solid #2b3139;
            color: #eaecef;
        }

        [data-theme="binance"] .confirm-message {
            color: #eaecef;
        }

        [data-theme="binance"] .mobile-fund-sheet-overlay {
            background: rgba(0, 0, 0, 0.75);
        }

        [data-theme="binance"] .mobile-fund-sheet-content {
            background: #1e2329;
            border-top: 1px solid #2b3139;
        }

        [data-theme="binance"] .mobile-fund-sheet-header {
            border-bottom: 1px solid #2b3139;
        }

        [data-theme="binance"] .mobile-fund-sheet-title {
            color: #eaecef;
        }

        [data-theme="binance"] .mobile-fund-sheet-close {
            color: #707a8a;
        }

        [data-theme="binance"] .section-tab {
            background: transparent;
            color: #707a8a;
            border: none;
        }

        [data-theme="binance"] .section-tab:hover {
            background: #474d57;
            color: #eaecef;
        }

        [data-theme="binance"] .section-tab.active {
            background: #fcd535;
            color: #181a20;
            border-color: #fcd535;
            box-shadow: none;
        }

        [data-theme="binance"] .dlv-tab,
        [data-theme="binance"] .dlv-table-tab {
            background: #1e2329;
            color: #707a8a;
            border: 1px solid #2b3139;
        }

        [data-theme="binance"] .dlv-tab:hover,
        [data-theme="binance"] .dlv-table-tab:hover {
            background: #2b3139;
            color: #eaecef;
        }

        [data-theme="binance"] .dlv-tab.active,
        [data-theme="binance"] .dlv-table-tab.active {
            background: #fcd535;
            color: #181a20;
            border-color: #fcd535;
            box-shadow: none;
        }

        [data-theme="binance"] .balance-table tbody tr:hover {
            background: #2b3139;
        }

        [data-theme="binance"] .balance-table td {
            border-bottom: 1px solid #2b3139;
        }

        [data-theme="binance"] .balance-table tfoot {
            background: #181a20;
        }

        [data-theme="binance"] .balance-table tfoot td {
            border-top: 2px solid #fcd535;
        }

        [data-theme="binance"] .divlowvol-table tbody tr:hover {
            background: #2b3139;
        }

        [data-theme="binance"] .divlowvol-table td {
            border-bottom: 1px solid #2b3139;
        }

        [data-theme="binance"] .mobile-fund-table tbody tr:nth-child(even) {
            background: #181a20;
        }

        [data-theme="binance"] .mobile-fund-table tbody tr:hover {
            background: #2b3139;
        }

        [data-theme="binance"] .mobile-fund-table td {
            border-bottom: 1px solid #2b3139;
        }

        [data-theme="binance"] .stock-holdings-table tbody td {
            border-bottom: 1px solid #2b3139;
        }

        [data-theme="binance"] .stock-holding-market-cell,
        [data-theme="binance"] .stock-holding-code,
        [data-theme="binance"] .stock-holding-weight-cell {
            color: #929aa5;
        }

        [data-theme="binance"] .pricing-table-wrap {
            border: 1px solid #2b3139;
        }

        [data-theme="binance"] .pricing-table thead {
            background: #fcd535;
            color: #181a20;
        }

        [data-theme="binance"] .pricing-table td {
            border-bottom: 1px solid #2b3139;
        }

        [data-theme="binance"] .fund-card:hover {
            box-shadow: none;
            transform: none;
        }

        [data-theme="binance"] .overview-card:hover,
        [data-theme="binance"] .stat-card:hover {
            box-shadow: none;
        }

        [data-theme="binance"] .toggle-slider::before {
            background: #eaecef;
        }

        [data-theme="binance"] .toggle-label {
            color: #eaecef;
        }

        [data-theme="binance"] .sort-dropdown-menu {
            background: #1e2329;
            border: 1px solid #2b3139;
            box-shadow: none;
        }

        [data-theme="binance"] .sort-dropdown-btn {
            background: #1e2329;
            color: #eaecef;
            border: 1px solid #2b3139;
        }

        [data-theme="binance"] .sort-dropdown-item {
            color: #eaecef;
            border-bottom: 1px solid #2b3139;
        }

        [data-theme="binance"] .sort-dropdown-item:hover {
            background: #2b3139;
        }

        [data-theme="binance"] .sort-dropdown-item.active {
            background: #2b3139;
            color: #fcd535;
        }

        [data-theme="binance"] .autocomplete-list {
            background: #1e2329;
            border-color: #2b3139;
            box-shadow: none;
        }

        [data-theme="binance"] .autocomplete-item {
            color: #eaecef;
            border-bottom: 1px solid #2b3139;
        }

        [data-theme="binance"] .autocomplete-item:hover {
            background: #2b3139;
        }

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

        [data-theme="binance"] .autocomplete-item-code {
            color: #707a8a;
        }

        [data-theme="binance"] .autocomplete-item-type {
            color: #fcd535;
            background: rgba(252, 213, 53, 0.1);
        }

        [data-theme="binance"] .fund-tabs {
            border-bottom: 2px solid #2b3139;
        }

        [data-theme="binance"] .fund-tab {
            color: #707a8a;
        }

        [data-theme="binance"] .fund-tab:hover {
            color: #eaecef;
        }

        [data-theme="binance"] .fund-tab.active {
            color: #fcd535;
            border-bottom-color: #fcd535;
        }

        [data-theme="binance"] .sync-config-content {
            background: #1e2329;
            border: 1px solid #2b3139;
            color: #eaecef;
            box-shadow: none;
        }

        [data-theme="binance"] .sync-config-content h3 {
            color: #eaecef;
        }

        [data-theme="binance"] .sync-config-content label:not(.toggle-switch) {
            color: #707a8a;
        }

        [data-theme="binance"] .sync-config-content input {
            background: #181a20;
            border: 1px solid #2b3139;
            color: #eaecef;
        }

        [data-theme="binance"] .count-badge {
            background: #f6465d;
        }

        [data-theme="binance"] .fund-list-header {
            background: #1e2329;
            border-bottom-color: #2b3139;
        }

        [data-theme="binance"] .position-info {
            background: #181a20;
            border-color: #2b3139;
        }

        [data-theme="binance"] .header {
            border-bottom: 1px solid #2b3139;
        }

        [data-theme="binance"] .overview-grid {
            gap: 12px;
        }

        [data-theme="binance"] .metric-value {
            color: #eaecef;
        }

        [data-theme="binance"] .metric-label {
            color: #707a8a;
        }

        [data-theme="binance"] .fund-name {
            color: #eaecef;
        }

        [data-theme="binance"] .fund-code {
            color: #707a8a;
        }

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

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

        [data-theme="binance"] .nav-item:hover {
            color: #eaecef;
            background: #2b3139;
        }

        [data-theme="binance"] .nav-item.active {
            color: #fcd535;
            background: rgba(252, 213, 53, 0.1);
        }

        [data-theme="binance"] .section-title {
            color: #eaecef;
        }

        [data-theme="binance"] .timestamp-info {
            color: #707a8a;
        }

        [data-theme="binance"] .balance-calc-hint {
            color: #707a8a;
        }

        [data-theme="binance"] .balance-type-hint {
            color: #707a8a;
        }

        [data-theme="binance"] .type-hint-line .dot.income {
            background: #229954;
        }

        [data-theme="binance"] .type-hint-line .dot.growth {
            background: #da625d;
        }

        [data-theme="binance"] .type-hint-line .dot.balanced {
            background: #fcd535;
        }

        [data-theme="binance"] .balance-summary .summary-item span {
            color: #707a8a;
        }

        [data-theme="binance"] .balance-summary .summary-item strong {
            color: #eaecef;
        }

        [data-theme="binance"] .balance-type-summary .type-item {
            color: #707a8a;
        }

        [data-theme="binance"] .balance-type-summary .type-item strong {
            color: #eaecef;
        }

        [data-theme="binance"] ::-webkit-scrollbar {
            width: 6px;
        }

        [data-theme="binance"] ::-webkit-scrollbar-track {
            background: #181a20;
        }

        [data-theme="binance"] ::-webkit-scrollbar-thumb {
            background: #2b3139;
            border-radius: 3px;
        }

        [data-theme="binance"] ::-webkit-scrollbar-thumb:hover {
            background: #474d57;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg-warm);
            min-height: 100vh;
            padding: 16px;
            padding-top: 32px;
            padding-bottom: 32px;
            zoom: 1;
            color: var(--primary-700);
            line-height: 1.6;
        }

        .container {
            max-width: 1478px;
            margin: 0 auto;
        }

        .header {
            background: var(--bg-card);
            backdrop-filter: blur(8px);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 24px;
            box-shadow: var(--shadow-lg);
            position: relative;
            z-index: 100;
        }

        h1 {
            color: var(--primary-800);
            margin-bottom: 16px;
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -0.02em;
            line-height: 1.4;
        }

        .header-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
        }

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

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

        /* 用户面板（账号 + 同步状态合一） */
        .user-panel {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px 12px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 500;
            transition: all 0.2s ease-out;
            cursor: pointer;
            background: var(--bg-card);
            border: 1px solid var(--primary-100);
            box-shadow: var(--shadow-sm);
            color: var(--primary-600);
        }

        .user-panel:hover {
            box-shadow: var(--shadow-md);
        }

        .user-panel-name {
            max-width: 160px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .user-panel-divider {
            width: 1px;
            height: 12px;
            background: var(--primary-200);
            flex-shrink: 0;
        }

        .user-panel-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .user-panel.offline { color: var(--primary-500); }
        .user-panel.offline .user-panel-dot { background: var(--primary-300); }

        .user-panel.online { color: var(--accent-green); }
        .user-panel.online .user-panel-dot { background: var(--accent-green); box-shadow: 0 0 3px rgba(34, 153, 84, 0.6); }

        .user-panel.synced { color: var(--accent-green); }
        .user-panel.synced .user-panel-dot { background: var(--accent-green); box-shadow: 0 0 3px rgba(34, 153, 84, 0.6); }

        .user-panel.syncing { color: var(--primary-600); }
        .user-panel.syncing .user-panel-dot { background: var(--primary-400); animation: pulse 1.2s ease-in-out infinite; }

        .user-panel.error { color: var(--accent-red); }
        .user-panel.error .user-panel-dot { background: var(--accent-red); box-shadow: 0 0 3px rgba(218, 98, 93, 0.6); }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        /* 用户ID输入框样式 */
        .sync-config {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .sync-config.active {
            display: flex;
        }

        .sync-config-content {
            background: var(--bg-surface);
            border-radius: 12px;
            padding: 24px;
            width: 90%;
            max-width: 308px;
            box-shadow: var(--shadow-lg);
            color: var(--primary-700);
        }

        .sync-config-content h3 {
            margin-bottom: 16px;
            color: var(--primary-800);
            font-size: 14px;
            font-weight: 600;
        }

        .sync-config-content .form-group {
            margin-bottom: 16px;
        }

        .sync-config-content label:not(.toggle-switch) {
            display: block;
            margin-bottom: 4px;
            color: var(--primary-600);
            font-size: 10px;
        }

        .sync-config-content input {
            width: 100%;
            height: 40px;
            padding: 0 8px;
            border: 2px solid var(--primary-200);
            border-radius: 6px;
            font-size: 12px;
            background: var(--bg-surface);
            color: var(--primary-700);
        }

        .sync-config-content .btn-group {
            display: flex;
            gap: 8px;
            margin-top: 16px;
        }

        .sync-config-content .btn {
            flex: 1;
            height: 40px;
            padding: 0 16px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
        }

        /* 自定义开关样式 */
        .toggle-switch {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            cursor: pointer;
        }

        .toggle-switch input {
            display: none;
        }

        .toggle-slider {
            position: relative;
            width: 38px;
            height: 22px;
            background: #CBD5E1;
            border-radius: 22px;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .toggle-slider::before {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 17px;
            height: 17px;
            background: white;
            border-radius: 50%;
            transition: all 0.3s;
            box-shadow: 0 2px 3px rgba(100, 116, 139, 0.2);
        }

        .toggle-switch input:checked + .toggle-slider {
            background: var(--primary-400);
        }

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

        .toggle-label {
            font-size: 10px;
            color: var(--primary-800);
            font-weight: 500;
        }

        /* 比例平衡容器 */
        .balance-container {
            display: flex;
            flex-direction: column;
            gap: 24px;
            animation: fadeIn 0.3s ease;
        }

        /* 饼图卡片行 */
        .balance-charts-row {
            display: flex;
            gap: 24px;
            justify-content: center;
        }

        .balance-chart-card {
            flex: 1;
            background: var(--bg-card);
            border-radius: 12px;
            padding: 30px;
            box-shadow: var(--shadow-lg);
            text-align: center;
        }

        .balance-chart-card h3 {
            margin-bottom: 12px;
            color: var(--primary-800);
            font-size: 14px;
        }

        @media (max-width: 924px) {
            .balance-container {
                gap: 8px;
            }
            .balance-charts-row {
                flex-direction: column;
                align-items: center;
                gap: 8px;
            }
            .balance-chart-card {
                max-width: 100%;
                width: 100%;
                padding: 20px;
            }
            .balance-table-card {
                padding: 20px;
            }
            .pie-with-legend {
                grid-template-columns: 140px 160px;
            }
            .pie-with-legend canvas {
                width: 140px !important;
                height: 140px !important;
                max-width: 140px;
                max-height: 140px;
            }
        }

        .pie-with-legend {
            display: grid;
            grid-template-columns: 168px 160px;
            gap: 24px;
            justify-content: center;
            align-items: center;
        }

        .pie-with-legend canvas {
            width: 168px !important;
            height: 168px !important;
            margin: 0 auto;
            display: block;
            max-width: 168px;
            max-height: 168px;
        }

        /* 分类占比饼图 */
        .balance-type-chart-wrapper {
            margin-top: 16px;
            text-align: center;
        }

        /* 自定义图例 */
        .chart-legend {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px 12px;
            margin-top: 10px;
            font-size: 10px;
            color: var(--text-primary);
        }

        .chart-legend.side {
            flex-direction: column;
            flex-wrap: nowrap;
            align-items: stretch;
            flex: 0 0 160px;
            min-width: 0;
            overflow: hidden;
            margin-top: 0;
            gap: 6px;
        }

        .chart-legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .chart-legend.side .chart-legend-item {
            justify-content: space-between;
            gap: 8px;
        }

        .chart-legend-item .legend-label {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: left;
        }

        .chart-legend-item .legend-value {
            text-align: right;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .type-legend .chart-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .type-legend .legend-label {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: left;
        }

        .type-legend .legend-amount {
            width: 55px;
            text-align: right;
            white-space: nowrap;
            font-size: 10px;
        }

        .type-legend .legend-pct {
            width: 40px;
            text-align: right;
            white-space: nowrap;
            font-size: 10px;
        }

        .chart-legend-color {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            flex-shrink: 0;
        }

        .balance-summary {
            margin-top: 16px;
            padding: 12px;
            background: var(--primary-25);
            border-radius: 8px;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .summary-item span {
            color: var(--primary-600);
            font-size: 14px;
            font-weight: 600;
        }

        .summary-item strong {
            color: var(--primary-800);
            font-size: 14px;
            font-weight: 600;
        }

        /* 分类占比饼图 */
        .balance-type-chart-wrapper {
            text-align: center;
        }

        /* 表格样式 */
        .balance-table-container {
            border: 1px solid var(--primary-100);
            border-radius: 8px;
            overflow: hidden;
        }

        .balance-table-card {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 30px;
            box-shadow: var(--shadow-lg);
        }

        @media (max-width: 924px) {
            .balance-table-card {
                margin-top: 0;
            }
        }

        .balance-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }

        .balance-table thead {
            position: sticky;
            top: 0;
            background: var(--primary-400);
            color: var(--bg-surface);
            z-index: 1;
        }

        .balance-table th {
            padding: 8px 8px;
            text-align: center;
            font-weight: 500;
            font-size: 12px;
        }

        .balance-table th:first-child {
            text-align: left;
            padding-left: 12px;
        }

        .balance-table td {
            padding: 8px 8px;
            text-align: center;
            border-bottom: 1px solid var(--primary-50);
        }

        .balance-table td:first-child {
            text-align: left;
            padding-left: 12px;
        }

        .balance-table tbody tr:hover {
            background: var(--primary-25);
        }

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

        .balance-table tfoot {
            background: var(--primary-25);
            font-weight: 500;
        }

        .balance-table tfoot td {
            border-top: 2px solid var(--primary-300);
            padding: 8px 8px;
        }

        /* 基金名称列 */
        .balance-fund-name-cell {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .balance-fund-name {
            font-weight: 500;
            color: var(--primary-800);
            font-size: 12px;
        }

        .balance-fund-code {
            color: var(--primary-500);
            font-size: 12px;
        }

        /* 美股模块基金表：大标题 */
        .us-fund-table-header {
            padding: 0 0 12px 0;
        }
        .us-fund-table-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-800);
        }
        .us-fund-table-update {
            font-size: 10px;
            color: var(--primary-500);
            margin-top: 2px;
        }

        /* 美股模块基金表：名称单行省略，8 列桌面布局 */
        .us-fund-table {
            table-layout: fixed;
        }
        .us-fund-table td {
            font-size: 14px;
        }
        .us-fund-table th:nth-child(1),
        .us-fund-table td:nth-child(1) {
            text-align: left;
            width: 38%;
        }
        .us-fund-table th:nth-child(2),
        .us-fund-table td:nth-child(2) {
            width: 8.86%;
        }
        .us-fund-table th:nth-child(3),
        .us-fund-table td:nth-child(3) {
            width: 8.86%;
        }
        .us-fund-table th:nth-child(4),
        .us-fund-table td:nth-child(4) {
            width: 8.86%;
        }
        .us-fund-table th:nth-child(5),
        .us-fund-table td:nth-child(5) {
            width: 8.86%;
        }
        .us-fund-table th:nth-child(6),
        .us-fund-table td:nth-child(6) {
            width: 8.86%;
        }
        .us-fund-table th:nth-child(7),
        .us-fund-table td:nth-child(7) {
            width: 8.86%;
        }
        .us-fund-table th:nth-child(8),
        .us-fund-table td:nth-child(8) {
            width: 8.86%;
        }
        .us-fund-table td:nth-child(8) {
            font-weight: 600;
        }
        .us-fund-table .us-fund-nav-date {
            display: block;
            font-size: 10px;
            color: var(--primary-500);
        }
        .fund-fee-info-icon {
            display: inline-block;
            width: 14px;
            height: 14px;
            color: inherit;
            margin-left: 3px;
            cursor: pointer;
            vertical-align: -2px;
        }
        .us-fund-table th[data-sort] {
            cursor: pointer;
            user-select: none;
        }
        .us-fund-table th[data-sort]::after {
            content: '';
            display: inline-block;
            width: 0;
            height: 0;
            margin-left: 4px;
            vertical-align: middle;
            opacity: 0.3;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 5px solid currentColor;
        }
        .us-fund-table th[data-sort].sort-asc::after {
            opacity: 1;
            border-top: none;
            border-bottom: 5px solid currentColor;
        }
        .us-fund-table th[data-sort].sort-desc::after {
            opacity: 1;
            border-top: 5px solid currentColor;
        }
        .us-fund-table .balance-fund-name-cell {
            min-width: 0;
            overflow: hidden;
        }
        .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%;
        }

        /* 基金类别角标（SVG 图标） */
        .fund-class-svg {
            width: 14px;
            height: 14px;
            margin-right: 4px;
            vertical-align: -3px;
            display: inline-block;
            flex-shrink: 0;
        }

        /* 目标比例输入 */
        .balance-ratio-input {
            width: 36px;
            padding: 4px 4px;
            border: none;
            border-bottom: 2px solid var(--primary-100);
            border-radius: 0;
            text-align: center;
            font-size: 12px;
            transition: border-color 0.3s;
            background: transparent;
            color: var(--primary-800);
        }

        .balance-ratio-input:focus {
            border-bottom-color: var(--primary-600);
            outline: none;
        }

        .balance-ratio-input.error {
            border-bottom-color: var(--accent-red);
            background: var(--accent-red-bg);
        }

        /* 目标金额样式 */
        .balance-target-amount {
            font-weight: 500;
            font-size: 12px;
            color: var(--primary-800);
        }

        /* 调整金额样式 */
        .balance-adjust-amount {
            font-weight: 500;
            font-size: 12px;
        }

        .balance-adjust-amount.buy {
            color: var(--accent-red);
        }

        .balance-adjust-amount.sell {
            color: var(--accent-green);
        }

        .balance-adjust-amount.neutral {
            color: var(--primary-500);
        }

        /* 每期金额样式 */
        .balance-period-amount {
            font-weight: 500;
            font-size: 12px;
        }

        .balance-period-amount.buy {
            color: var(--accent-red);
        }

        .balance-period-amount.sell {
            color: var(--accent-green);
        }

        .balance-period-amount.neutral {
            color: var(--primary-500);
        }

        /* 每期金额计算说明 */
        .balance-calc-hint {
            font-size: 10px;
            color: var(--primary-500);
            margin-bottom: 4px;
            padding: 0 4px;
            line-height: 1.4;
        }

        .balance-type-hint {
            font-size: 10px;
            color: var(--primary-500);
            margin-bottom: 8px;
            padding: 0 4px;
            line-height: 1.6;
        }

        .balance-type-hint .type-tag {
            font-weight: 600;
            padding: 1px 4px;
            border-radius: 3px;
            white-space: nowrap;
        }

        .balance-type-hint .type-tag.growth {
            color: var(--chart-up);
            background: var(--accent-red-bg);
        }

        .balance-type-hint .type-tag.balanced {
            color: var(--chart-secondary);
            background: var(--accent-blue-bg);
        }

        .balance-type-hint .type-tag.income {
            color: var(--chart-down);
            background: var(--accent-green-bg);
        }

        /* 基金分类占比汇总 */
        .balance-type-summary {
            display: flex;
            gap: 16px;
            margin-top: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .balance-type-summary .type-item {
            font-size: 12px;
            color: var(--primary-500);
        }
        .balance-type-summary .type-item strong {
            color: var(--text-primary);
            margin-left: 4px;
        }

        /* 基金分类下拉框 */
        .fund-type-select {
            font-size: 12px;
            padding: 2px 4px;
            border-radius: 4px;
            border: 1px solid var(--primary-200);
            background: var(--bg-surface);
            color: var(--text-primary);
            cursor: pointer;
        }

        /* 目标总市值输入 */
        .balance-target-total-row {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 12px;
            padding: 8px 0;
        }

        .balance-target-total-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .balance-target-total-item .btn {
            height: auto;
            padding: 4px 16px;
        }

        .balance-target-total-row label {
            font-size: 12px;
            font-weight: 600;
            color: var(--primary-700);
            white-space: nowrap;
        }

        .balance-reset-btn {
            background: none !important;
            border: none !important;
            color: var(--primary-500) !important;
            padding: 0 4px !important;
            font-size: 12px;
            box-shadow: none !important;
        }

        .balance-reset-btn:hover {
            color: var(--primary-700) !important;
        }

        .balance-target-total-input {
            width: 90px;
            padding: 4px 4px;
            border: none;
            border-bottom: 2px solid var(--primary-100);
            border-radius: 0;
            font-size: 12px;
            text-align: center;
            background: transparent;
            transition: border-color 0.3s;
        }

        .balance-target-total-input:focus {
            border-bottom-color: var(--primary-600);
            outline: none;
        }

        .balance-target-total-input::-webkit-inner-spin-button,
        .balance-target-total-input::-webkit-outer-spin-button,
        .balance-ratio-input::-webkit-inner-spin-button,
        .balance-ratio-input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .balance-target-total-input,
        .balance-ratio-input {
            -moz-appearance: textfield;
        }

        /* iOS 防止输入时页面自动缩放 */
        @supports (-webkit-touch-callout: none) {
            .balance-target-total-input {
                font-size: 12px;
                width: 90px;
            }
            .balance-target-total-input:focus {
                font-size: 16px;
                width: 110px;
            }
            .balance-ratio-input {
                font-size: 12px;
                width: 36px;
            }
            .balance-ratio-input:focus {
                font-size: 16px;
                width: 50px;
            }
            .sip-input {
                font-size: 12px;
            }
            .sip-input:focus {
                font-size: 16px;
            }
        }

        /* 操作按钮 */
        .balance-actions {
            display: flex;
            gap: 8px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--primary-200);
        }

        .balance-actions .btn {
            flex: 1;
            height: 20px;
            padding: 0 8px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
        }

        .balance-actions .btn-secondary {
            background: var(--primary-50);
            color: var(--primary-600);
        }

        /* 调仓结果 */
        .rebalance-result {
            margin-top: 16px;
            padding: 16px;
            background: var(--primary-25);
            border-radius: 8px;
            border-left: 3px solid var(--primary-500);
        }

        .rebalance-result h4 {
            margin-bottom: 12px;
            color: var(--primary-800);
        }

        .rebalance-suggestion {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid var(--primary-200);
        }

        .rebalance-suggestion:last-child {
            border-bottom: none;
        }

        .rebalance-fund-name {
            font-weight: 500;
            color: var(--primary-800);
        }

        .rebalance-action {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .rebalance-action-type {
            padding: 4px 8px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: 500;
        }

        .rebalance-action-type.buy {
            background: var(--accent-red-bg);
            color: var(--accent-red);
        }

        .rebalance-action-type.sell {
            background: var(--accent-green-bg);
            color: var(--accent-green);
        }

        .rebalance-amount {
            font-weight: 600;
            font-size: 12px;
            color: var(--primary-800);
        }

        /* 比例平衡空状态 */
        .balance-empty {
            text-align: center;
            padding: 48px 16px;
            color: var(--primary-500);
        }

        .balance-empty h3 {
            margin-bottom: 8px;
            color: var(--primary-600);
        }

        .controls {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
            position: relative;
            overflow: visible;
        }

        /* 账户筛选 Tab 栏 */
        .account-filter-tabs {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .account-filter-tab {
            padding: 6px 14px;
            border-radius: 8px;
            border: 1px solid var(--primary-200);
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }

        .account-filter-tab:hover {
            background: var(--primary-50);
            border-color: var(--primary-400);
            color: var(--primary-600);
        }

        .account-filter-hint {
            font-size: 10px;
            color: var(--primary-400);
            white-space: nowrap;
            user-select: none;
            -webkit-user-select: none;
        }

        .account-filter-tab.active {
            background: var(--primary-400);
            color: var(--bg-surface);
            border-color: var(--primary-400);
            font-weight: 600;
        }

        [data-theme="default"] .account-filter-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: transparent;
        }

        [data-theme="apple"] .account-filter-tab.active {
            background: #0066cc;
            border-color: #0066cc;
        }

        [data-theme="binance"] .account-filter-tab.active {
            background: #fcd535;
            color: #181a20;
            border-color: #fcd535;
        }

        .account-filter-add {
            padding: 6px 12px;
            font-size: 16px;
            font-weight: 600;
            line-height: 1;
            border-color: var(--primary-400);
            color: var(--primary-500);
        }

        .account-filter-add:hover {
            background: var(--primary-500);
            color: var(--bg-surface);
            border-color: var(--primary-500);
        }

        /* 账户统计指标 */
        .account-stats-bar {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: var(--shadow-sm);
            grid-column: 1 / -1;
        }

        .account-stats-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .account-stats-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 12px;
        }

        .account-stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px;
            border-radius: 8px;
            background: var(--primary-25);
        }

        .account-stat-label {
            font-size: 12px;
            color: var(--primary-600);
            margin-bottom: 4px;
            font-weight: 500;
        }

        .account-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-800);
        }

        .account-stat-value.positive {
            color: var(--accent-red);
        }

        .account-stat-value.negative {
            color: var(--accent-green);
        }

        /* 表单下拉框 */
        .form-select {
            width: 100%;
            height: 40px;
            padding: 0 12px;
            border: 1px solid var(--primary-200);
            border-radius: var(--radius-sm);
            background: var(--bg-surface);
            font-size: 12px;
            color: var(--text-primary);
            box-sizing: border-box;
            cursor: pointer;
        }

        .form-select:focus {
            outline: none;
            border-color: var(--primary-400);
        }

        .screenshot-account-select {
            width: 100%;
            height: 36px;
            padding: 0 10px;
            border: 1px solid var(--primary-200);
            border-radius: var(--radius-sm);
            background: var(--bg-surface);
            font-size: 13px;
            color: var(--text-primary);
            box-sizing: border-box;
            cursor: pointer;
        }

        /* === 分配交易卡片（网格/列表模式） === */
        .assign-card {
            cursor: pointer;
            border: 2px dashed var(--primary-200);
            background: var(--bg-card);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 200px;
            transition: all 0.2s ease;
        }

        .assign-card:hover {
            border-color: var(--primary-400);
            background: var(--primary-50);
        }

        .assign-card-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            color: var(--primary-500);
        }

        .assign-card-icon {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--primary-100);
            color: var(--primary-500);
        }

        .assign-card-label {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .assign-card-desc {
            font-size: 12px;
            color: var(--primary-500);
            text-align: center;
        }

        .assign-list-row {
            cursor: pointer;
            border: 2px dashed var(--primary-200);
            background: var(--bg-card);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 56px;
        }

        .assign-list-row:hover {
            border-color: var(--primary-400);
            background: var(--primary-50);
        }

        .assign-list-icon {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--primary-100);
            color: var(--primary-500);
        }

        /* === 分配交易弹窗 === */
        .assign-fund-section {
            margin-bottom: 16px;
            border: 1px solid var(--primary-100);
            border-radius: 10px;
            overflow: hidden;
            background: var(--bg-card);
        }

        .assign-fund-name {
            padding: 10px 14px;
            font-size: 14px;
            font-weight: 600;
            color: var(--bg-surface);
            background: var(--primary-400);
            border-bottom: 1px solid var(--primary-100);
        }

        [data-theme="default"] .assign-fund-name {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: transparent;
        }

        [data-theme="apple"] .assign-fund-name {
            background: #0066cc;
            border-color: #0066cc;
        }

        [data-theme="binance"] .assign-fund-name {
            background: #fcd535;
            color: #181a20;
            border-color: #fcd535;
        }

        .assign-fund-code {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.75);
            font-weight: 400;
            margin-left: 4px;
        }

        [data-theme="binance"] .assign-fund-code {
            color: #181a20;
            opacity: 0.6;
        }

        .assign-trans-list {
            padding: 4px 0;
        }

        .assign-trans-item {
            padding: 12px;
            border-bottom: 1px solid var(--primary-200);
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 8px;
        }

        .assign-trans-item:last-child {
            border-bottom: none;
        }

        .assign-trans-item.assigned {
            background: transparent;
        }

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

        .assign-trans-account {
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 4px;
            background: var(--primary-50);
            color: var(--primary-500);
            font-weight: 500;
            white-space: nowrap;
        }

        #assignAccountModalBody {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        #assignAccountModalBody::-webkit-scrollbar {
            display: none;
        }

        .assign-trans-actions {
            display: flex;
            gap: 6px;
            align-self: center;
            flex-shrink: 0;
        }

        .assign-trans-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
            line-height: 1;
        }

        .assign-trans-btn.assign-plus {
            background: var(--accent-green-bg);
            color: var(--accent-green);
        }

        .assign-trans-btn.assign-plus:hover:not(.disabled) {
            background: var(--accent-green);
            color: #fff;
        }

        .assign-trans-btn.assign-minus {
            background: var(--accent-red-bg);
            color: var(--accent-red);
        }

        .assign-trans-btn.assign-minus:hover:not(.disabled) {
            background: var(--accent-red);
            color: #fff;
        }


        /* 移动端分配行 */
        .mobile-assign-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            margin: 12px 20px;
            border: 2px dashed var(--primary-300);
            border-radius: 12px;
            background: var(--bg-card);
            cursor: pointer;
            color: var(--primary-500);
        }

        .mobile-assign-row:active {
            background: var(--primary-50);
        }

        .mobile-assign-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary-100);
            color: var(--primary-500);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .mobile-assign-text {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        /* 自选板块账户管理入口 */
        .watchlist-account-bar {
            display: flex;
            gap: 10px;
            margin-bottom: 12px;
        }

        .watchlist-account-entry {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: var(--bg-card);
            border: 1px solid var(--primary-100);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            flex: 1;
            box-shadow: var(--shadow-sm);
        }

        .watchlist-account-entry:hover {
            border-color: var(--primary-400);
            box-shadow: var(--shadow-md);
        }

        .watchlist-account-icon {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-50);
            border-radius: 8px;
            font-size: 14px;
            color: var(--primary-600);
            flex-shrink: 0;
        }

        .watchlist-account-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .watchlist-account-desc {
            font-size: 11px;
            color: var(--text-secondary);
            margin-left: auto;
        }

        .add-fund {
            display: flex;
            gap: 8px;
            flex: 1;
            min-width: 231px;
        }

        .mobile-search-trigger,
        .mobile-search-overlay,
        .floating-search-btn {
            display: none;
        }

        .mobile-search-bar {
            display: flex;
            gap: 8px;
            flex: 1;
            align-items: center;
            min-width: 0;
        }

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

        .add-fund input {
            flex: 1;
            min-width: 154px;
            height: 40px;
            padding: 0 12px;
            border: 2px solid var(--primary-200);
            border-radius: 6px;
            font-size: 12px;
            transition: all 0.3s;
        }

        .sort-controls {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .sort-controls label {
            color: var(--primary-600);
            font-size: 12px;
            font-weight: 500;
        }

        .sort-controls select {
            height: 40px;
            padding: 0 12px;
            border: 2px solid var(--primary-200);
            border-radius: 6px;
            font-size: 12px;
            background: white;
            cursor: pointer;
            transition: all 0.3s;
        }

        .sort-controls select:focus {
            outline: none;
            border-color: var(--primary-600);
            box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.1);
        }

        .backup-controls {
            display: flex;
            gap: 8px;
        }

        .add-fund input:focus {
            outline: none;
            border-color: var(--primary-600);
            box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.1);
        }

        /* 自动补全下拉列表样式 */
        .autocomplete-wrapper {
            position: relative;
            flex: 1;
            min-width: 154px;
        }

        .autocomplete-wrapper input {
            width: 100%;
        }

        .autocomplete-list {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            max-height: 231px;
            overflow-y: auto;
            background: var(--bg-surface);
            border: 2px solid var(--primary-400);
            border-top: none;
            border-radius: 0 0 6px 6px;
            box-shadow: var(--shadow-md);
            z-index: 2000;
            display: none;
        }

        .autocomplete-list.active {
            display: block;
        }

        .autocomplete-item {
            padding: 8px 12px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid var(--primary-100);
        }

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

        .autocomplete-item:hover {
            background: var(--primary-50);
        }

        .autocomplete-item-name {
            font-size: 12px;
            color: var(--primary-700);
            font-weight: 500;
            margin-bottom: 4px;
        }

        .autocomplete-item-code {
            font-size: 12px;
            color: var(--primary-400);
        }

        .autocomplete-item-type {
            display: inline-block;
            font-size: 12px;
            color: var(--primary-500);
            background: var(--primary-100);
            padding: 2px 4px;
            border-radius: 3px;
            margin-left: 4px;
        }

        .autocomplete-loading {
            padding: 8px 12px;
            text-align: center;
            color: var(--primary-500);
            font-size: 12px;
        }

        .autocomplete-empty {
            padding: 8px 12px;
            text-align: center;
            color: var(--primary-500);
            font-size: 12px;
        }

        /* 选项卡样式 */
        .fund-tabs {
            display: flex;
            border-bottom: 2px solid var(--primary-100);
            margin-bottom: 12px;
            gap: 4px;
            margin-top: 8px;
        }

        .fund-tab {
            flex: 1;
            padding: 8px 16px;
            cursor: pointer;
            border: none;
            background: transparent;
            color: var(--primary-600);
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            position: relative;
        }

        .fund-tab:hover {
            color: var(--primary-600);
            background: rgba(100, 116, 139, 0.05);
        }

        .fund-tab.active {
            color: var(--primary-600);
            border-bottom-color: var(--primary-600);
            font-weight: 600;
            background: rgba(100, 116, 139, 0.08);
        }

        .fund-tab-content {
            display: none;
            animation: fadeIn 0.3s ease-in-out;
        }

        .fund-tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 基金板块选项卡样式 */
        .fund-section-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 16px;
            justify-content: flex-start;
            align-items: center;
            padding: 4px;
            border-radius: 10px;
            background: var(--primary-50);
            width: fit-content;
        }

        .fund-section-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .fund-section-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-tab {
            padding: 10px 20px;
            border: none;
            background: transparent;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            color: var(--primary-600);
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .section-tab:hover {
            background: var(--primary-100);
        }

        .section-tab.active {
            background: var(--primary-400);
            color: var(--bg-surface);
        }

        /* 排序下拉框 */
        /* 隐藏旧的顶部排序控件，统一使用新的下拉框 */
        .sort-controls {
            display: none;
        }

        .sort-dropdown-wrapper {
            position: relative;
            display: inline-flex;
            margin-left: auto;
            align-items: center;
            gap: 8px;
        }

        .sort-dropdown-btn {
            width: 34px;
            height: 34px;
            border: none;
            background: var(--bg-card);
            border-radius: 8px;
            cursor: pointer;
            color: var(--primary-600);
            display: grid;
            place-items: center;
            padding: 0;
            transition: all 0.2s;
            box-shadow: var(--shadow-sm);
            position: relative;
        }

        .sort-dropdown-btn:hover {
            background: var(--primary-50);
            color: var(--primary-600);
            box-shadow: var(--shadow-md);
        }

        .view-toggle-btn {
            width: 34px;
            height: 34px;
            border: none;
            background: var(--bg-card);
            border-radius: 8px;
            cursor: pointer;
            color: var(--primary-600);
            display: grid;
            place-items: center;
            padding: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-sm);
            flex-shrink: 0;
        }

        .view-toggle-btn:hover {
            background: var(--primary-50);
            color: var(--primary-600);
            box-shadow: var(--shadow-md);
            transform: scale(1.05);
        }

        .view-toggle-btn.active {
            background: var(--bg-card);
            color: var(--primary-600);
            box-shadow: var(--shadow-md);
        }

        .sort-dropdown-btn svg,
        .view-toggle-btn svg {
            width: 16px;
            height: 16px;
            display: block;
        }

        .screenshot-import-header-btn svg {
            width: 22px;
            height: 22px;
        }

        .sort-dropdown-menu {
            position: absolute;
            top: 40px;
            right: 0;
            min-width: 160px;
            background: var(--bg-surface);
            border-radius: 8px;
            box-shadow: var(--shadow-lg);
            padding: 8px 0;
            display: none;
            z-index: 100;
            border: 1px solid var(--primary-100);
        }

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

        .sort-dropdown-item {
            padding: 8px 12px;
            font-size: 12px;
            color: var(--primary-800);
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s;
        }

        .sort-dropdown-item:hover {
            background: var(--primary-50);
        }

        .sort-dropdown-item.active {
            color: var(--primary-600);
            font-weight: 600;
            background: var(--primary-50);
        }
        /* 移动端基金列表头部（默认隐藏） */
        .mobile-fund-list-header {
            display: none;
        }

        /* 数量气泡样式 */
        .count-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 15px;
            height: 15px;
            padding: 0 4px;
            background: var(--accent-red);
            color: white;
            font-size: 10px;
            font-weight: 600;
            border-radius: 8px;
            margin-left: 4px;
        }

        /* 买入模式切换选项卡 */
        .buy-mode-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--primary-200);
        }

        .mode-tab {
            flex: 1;
            padding: 8px 16px;
            border: 2px solid var(--primary-200);
            background: var(--bg-surface);
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            color: var(--primary-600);
            transition: all 0.3s;
        }

        .mode-tab:hover {
            border-color: var(--primary-600);
            color: var(--primary-600);
        }

        .mode-tab.active {
            background: var(--primary-400);
            border-color: var(--primary-600);
            color: white;
        }

        [data-theme="default"] .mode-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: #667eea;
        }
        [data-theme="forest"] .mode-tab.active {
            background: #5D9465;
            border-color: #4A7A52;
        }

        [data-theme="coral"] .mode-tab.active {
            background: #C47860;
            border-color: #B5634A;
        }

        [data-theme="apple"] .mode-tab.active {
            background: #0066cc;
            border-color: #0066cc;
        }

        [data-theme="binance"] .mode-tab.active {
            background: #fcd535;
            border-color: #fcd535;
            color: #181a20;
        }

        /* 自动计算字段的样式 */
        #buyAmount[readonly], #buyShares[readonly] {
            background: var(--primary-50);
            color: var(--primary-600);
        }

        /* 基金详细信息样式 */
        .fund-details {
            background: var(--primary-50);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 12px;
        }

        .fund-details-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .fund-details-header h4 {
            font-size: 12px;
            color: var(--primary-500);
            margin: 0;
        }

        .fund-details-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .fund-detail-item {
            display: flex;
            flex-direction: column;
        }

        .fund-detail-label {
            font-size: 10px;
            color: var(--primary-600);
            margin-bottom: 4px;
        }

        .fund-detail-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary-800);
        }

        .fund-detail-value.positive {
            color: var(--accent-red);
        }

        .fund-detail-value.negative {
            color: var(--accent-green);
        }

        .ma-pct {
            font-size: 10px;
            margin-left: 4px;
        }

        .ma-pct.positive {
            color: var(--accent-red);
        }

        .ma-pct.negative {
            color: var(--accent-green);
        }

        .fund-manager-info {
            font-size: 12px;
            color: var(--primary-600);
            margin-top: 4px;
            padding-top: 4px;
            border-top: 1px solid var(--primary-200);
        }

        .fund-manager-name {
            font-weight: 600;
            color: var(--primary-800);
        }

        .net-worth-chart-container {
            margin-top: 12px;
            min-height: 178px;
        }

        .performance-chart-section {
            margin-top: 12px;
        }

        .performance-period-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .period-tab {
            padding: 4px 10px;
            border: 1px solid var(--primary-200);
            border-radius: 4px;
            background: var(--primary-50);
            color: var(--primary-600);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .period-tab:hover {
            background: var(--primary-100);
        }

        .period-tab.active {
            background: var(--primary-400);
            color: var(--bg-surface);
            border-color: var(--primary-400);
        }

        .performance-chart-container {
            min-height: 200px;
            position: relative;
        }

        .performance-legend {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 8px;
            font-size: 11px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
            color: var(--primary-500);
        }

        .legend-dot {
            width: 10px;
            height: 3px;
            border-radius: 2px;
            display: inline-block;
        }

        .legend-item.fund .legend-dot { background: #667eea; }
        .legend-item.similar .legend-dot { background: #f59e0b; }
        .legend-item.hs300 .legend-dot { background: #10b981; }

        .legend-return {
            margin-left: 4px;
            font-weight: 600;
            font-size: 11px;
        }
        .legend-return.positive { color: var(--accent-red); }
        .legend-return.negative { color: var(--accent-green); }

        .nav-table-section {
            margin-top: 16px;
        }

        .nav-table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .nav-table-header h4 {
            font-size: 12px;
            color: var(--primary-500);
            margin: 0;
        }

        .nav-table-subtitle {
            font-size: 10px;
            color: var(--primary-400);
        }

        .nav-table-wrapper {
            overflow-x: auto;
            border-radius: 6px;
            border: 1px solid var(--primary-200);
        }

        .nav-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 11px;
        }

        .nav-table thead {
            background: var(--primary-200);
        }

        .nav-table th {
            padding: 8px 10px;
            text-align: center;
            font-weight: 600;
            font-size: 12px;
            color: var(--primary-600);
            background: var(--primary-200);
            white-space: nowrap;
        }

        .nav-table td {
            padding: 8px 10px;
            text-align: center;
            font-size: 12px;
            border-top: 1px solid var(--primary-100);
            color: var(--primary-700);
            white-space: nowrap;
        }

        .nav-table td.positive {
            color: var(--accent-red);
        }

        .nav-table td.negative {
            color: var(--accent-green);
        }

        .nav-table tbody tr:hover {
            background: var(--primary-50);
        }

        .nav-table-load-more {
            display: block;
            width: 100%;
            padding: 8px;
            margin-top: 8px;
            border: 1px dashed var(--primary-300);
            border-radius: 6px;
            background: transparent;
            color: var(--primary-500);
            font-size: 11px;
            cursor: pointer;
            text-align: center;
            transition: all 0.15s ease;
        }

        .nav-table-load-more:hover {
            background: var(--primary-50);
            border-color: var(--primary-400);
        }

        .btn {
            height: 40px;
            padding: 0 16px;
            border: none;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease-out;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn:active {
            transform: scale(0.98);
        }

        .btn-primary {
            background: var(--primary-500);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
        }

        .btn-danger {
            background: var(--accent-red);
            color: white;
            font-size: 12px;
        }

        .btn-danger:hover {
            background: var(--accent-red);
            transform: scale(1.05);
        }

        .btn-secondary {
            background: var(--primary-300);
            color: white;
            font-size: 12px;
        }

        .btn-secondary:hover {
            background: var(--primary-400);
        }

        .backup-controls .btn-secondary {
            font-size: 12px;
            background: transparent;
            color: var(--primary-600);
            border: 1px solid var(--primary-200);
        }

        .backup-controls .btn-secondary:hover {
            background: transparent;
            transform: none;
            border-color: var(--primary-400);
        }

        .backup-controls .btn-secondary:first-child {
            background: transparent;
            color: var(--primary-600);
            border: 1px solid var(--primary-200);
        }

        .backup-controls .btn-secondary:first-child:hover {
            background: transparent;
            border-color: var(--primary-400);
        }

        .btn-warning {
            background: var(--accent-warm);
            color: white;
            font-size: 12px;
        }

        .btn-warning:hover {
            background: var(--accent-warm);
        }

        .btn-info {
            background: var(--primary-300);
            color: white;
            font-size: 12px;
        }

        .btn-info:hover {
            background: var(--primary-400);
        }

        /* 定投管理列表样式 */
        .sip-manage-item,
        .sip-manage-group {
            background: var(--bg-card);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 12px;
            border: 1px solid var(--primary-100);
            display: flex;
            flex-direction: column;
        }

        .sip-manage-plan {
            padding: 0;
            border-top: 1px solid var(--primary-100);
        }

        .sip-manage-plan:first-child {
            border-top: none;
        }

        .sip-manage-title {
            background: var(--primary-500);
            color: #fff;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        [data-theme="default"] .sip-manage-title {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        [data-theme="apple"] .sip-manage-title {
            background: #0066cc;
        }

        [data-theme="binance"] .sip-manage-title {
            background: #fcd535;
            color: #181a20;
        }

        [data-theme="binance"] .sip-manage-title .sip-manage-code {
            color: rgba(24,26,32,0.75);
        }

        .sip-manage-title .sip-manage-name {
            font-size: 12px;
            font-weight: 600;
            color: inherit;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            min-width: 0;
        }

        .sip-manage-title .sip-manage-code {
            font-size: 12px;
            color: rgba(255,255,255,0.85);
            flex-shrink: 0;
        }

        .sip-manage-status {
            font-size: 10px;
            padding: 2px 8px;
            border-radius: 4px;
            font-weight: 500;
            display: inline-block;
            flex-shrink: 0;
        }

        .sip-manage-title .sip-manage-status {
            background: rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.9);
        }

        .sip-manage-title .sip-manage-status.active {
            background: rgba(16,185,129,0.25);
            color: #34d399;
        }

        [data-theme="binance"] .sip-manage-title .sip-manage-status {
            background: rgba(24,26,32,0.1);
            color: rgba(24,26,32,0.8);
        }

        [data-theme="binance"] .sip-manage-title .sip-manage-status.active {
            background: rgba(16,185,129,0.2);
            color: #059669;
        }

        /* Fund-level SIP manage list (status on its own row) */
        .sip-manage-status-row {
            padding: 8px 16px 0px 16px;
        }

        .sip-manage-status-row .sip-manage-status.active {
            background: var(--accent-green-bg);
            color: var(--accent-green);
        }

        .sip-manage-status-row .sip-manage-status.disabled {
            background: var(--primary-100);
            color: var(--primary-500);
        }

        /* General status styles for light backgrounds (e.g. modal header) */
        .sip-manage-status.active {
            background: var(--accent-green-bg);
            color: var(--accent-green);
        }

        .sip-manage-status.disabled {
            background: var(--primary-100);
            color: var(--primary-500);
        }

        .sip-manage-detail {
            display: flex;
            gap: 4px 16px;
            font-size: 12px;
            color: var(--text-secondary);
            padding: 8px 16px;
            flex-wrap: wrap;
        }

        .sip-detail-label {
            color: var(--text-tertiary);
        }

        .sip-detail-value {
            color: var(--text-primary);
            font-weight: 500;
        }

        /* 隐藏定投管理弹窗滚动条 */
        #sipManageBody::-webkit-scrollbar,
        #fundSipManageBody::-webkit-scrollbar,
        #sipTransactionsBody::-webkit-scrollbar {
            display: none;
        }

        #sipManageBody,
        #fundSipManageBody,
        #sipTransactionsBody {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .sip-manage-actions {
            display: flex;
            padding: 0 16px 12px;
            gap: 8px;
        }

        .sip-manage-actions .btn {
            flex: 1;
            height: 36px;
            padding: 0;
            font-size: 12px;
        }

        /* 定投记录列表 */
        .sip-transactions-list {
            padding: 8px 0;
        }

        .sip-transaction-item {
            padding: 12px 16px;
            border-bottom: 1px solid var(--primary-100);
        }

        .sip-transaction-item:last-child {
            border-bottom: none;
        }

        .sip-transaction-main {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }

        .sip-transaction-date {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .sip-transaction-amount {
            font-size: 14px;
            font-weight: 600;
            color: var(--danger-color, #dc2626);
        }

        .sip-transaction-detail {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 16px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .sip-transaction-detail span {
            white-space: nowrap;
        }

        /* 定投设置弹窗布局 */
        .sip-form-row {
            display: flex;
            gap: 12px;
            align-items: stretch;
        }

        .sip-form-row .form-select,
        .sip-form-row input[type="date"],
        .sip-form-row .custom-select {
            flex: 1;
            min-width: 0;
        }

        .sip-date-hint {
            font-size: 10px;
            color: var(--primary-500);
            margin-top: 4px;
        }

        #sipModal select,
        #sipModal option {
            font-size: 12px;
        }

        .custom-select {
            position: relative;
            width: 100%;
            height: 40px;
            flex-shrink: 0;
        }

        .custom-select-trigger {
            width: 100%;
            height: 40px;
            padding: 0 12px;
            border: 1px solid var(--primary-200);
            border-radius: var(--radius-sm);
            background: var(--bg-surface);
            font-size: 12px;
            color: var(--text-primary);
            box-sizing: border-box;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .custom-select-trigger::after {
            content: '\25BC';
            font-size: 10px;
            color: var(--text-secondary);
        }

        .custom-select-dropdown {
            position: fixed;
            max-height: 240px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            background: var(--bg-surface);
            border: 1px solid var(--primary-200);
            border-radius: var(--radius-sm);
            z-index: 10000;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .custom-select-option {
            padding: 10px 12px;
            font-size: 12px;
            color: var(--text-primary);
            cursor: pointer;
            border-bottom: 1px solid var(--primary-100);
        }

        .custom-select-option:last-child {
            border-bottom: none;
        }

        .custom-select-option:hover {
            background: var(--primary-100);
        }

        .sip-enabled-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-direction: row !important;
        }

        .sip-enabled-label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        /* 滑动开关（桌面端复用移动端样式） */
        .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);
        }

        /* 总览看板样式 */
        .overview-panel {
            margin-bottom: 24px;
            position: relative;
            z-index: 10;
        }

        .overview-card {
            background: var(--bg-card);
            backdrop-filter: blur(8px);
            border-radius: 12px;
            padding: 16px;
            box-shadow: var(--shadow-lg);
        }

        .overview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--primary-100);
        }

        .overview-header h2 {
            font-size: 18px;
            color: var(--primary-800);
            margin: 0;
        }

        .overview-header-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .overview-eye-btn {
            width: 28px;
            height: 28px;
            border: none;
            background: transparent;
            border-radius: 6px;
            cursor: pointer;
            color: var(--primary-500);
            display: grid;
            place-items: center;
            padding: 0;
            transition: all 0.2s;
        }

        .overview-eye-btn:hover {
            background: var(--primary-50);
            color: var(--primary-700);
        }

        .overview-eye-btn svg {
            width: 16px;
            height: 16px;
            display: block;
        }

        .overview-date {
            font-size: 10px;
            color: var(--primary-500);
        }

        .overview-stats {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 12px;
        }

        .overview-stats .stat-item {
            padding: 12px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 16px;
            border-radius: 8px;
            background: var(--primary-25);
            transition: transform 0.2s;
        }

        .stat-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 9px rgba(100, 116, 139, 0.1);
        }

        .stat-item.stat-highlight {
            background: var(--bg-surface);
            border: 2px solid var(--primary-200);
        }

        .stat-item.stat-highlight .stat-label {
            color: var(--primary-600);
        }
        
        .stat-item.stat-highlight .stat-value {
            color: var(--primary-800);
        }

        .stat-label {
            font-size: 12px;
            color: var(--primary-600);
            margin-bottom: 4px;
            font-weight: 500;
        }

        .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-800);
        }

        .stat-value.positive {
            color: var(--accent-red); /* 盈利：鲜艳红色 */
        }

        .stat-value.negative {
            color: var(--accent-green); /* 亏损：鲜艳绿色 */
        }

        /* 今日盈亏使用涨跌颜色，不覆盖为白色 */
        .stat-item.stat-highlight .stat-value.positive {
            color: var(--accent-red) !important; /* 涨：红色 */
            font-weight: 800;
        }
        
        .stat-item.stat-highlight .stat-value.negative {
            color: var(--accent-green) !important; /* 跌：绿色 */
            font-weight: 800;
        }
        
        /* 其他主要统计卡片保持白色 */
        .funds-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            align-items: start;
        }

        .fund-card {
            background: var(--bg-surface);
            backdrop-filter: blur(8px);
            border-radius: 12px;
            padding: 24px;
            box-shadow: var(--shadow-lg);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
        }

        .fund-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        /* === 列表视图样式 === */
        .fund-list-view {
            display: flex;
            flex-direction: column;
            gap: 8px;
            animation: fadeInList 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        .fund-list-header {
            display: grid;
            grid-template-columns: 2fr 0.7fr 0.6fr 1fr 0.9fr 0.9fr 0.7fr 0.9fr;
            gap: 8px;
            padding: 8px 16px;
            background: var(--primary-25);
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            color: var(--primary-700);
            position: sticky;
            top: 0;
            z-index: 5;
        }
        .fund-list-header > div:not(:first-child) {
            text-align: center;
        }

        .fund-list-row {
            background: var(--bg-card);
            border-radius: 10px;
            box-shadow: var(--shadow-sm);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            animation: fadeInList 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
        }

        .fund-list-row:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .fund-list-data {
            display: grid;
            grid-template-columns: 2fr 0.7fr 0.6fr 1fr 0.9fr 0.9fr 0.7fr 0.9fr;
            gap: 8px;
            padding: 12px 16px;
            align-items: center;
        }

        .fund-list-data > .fund-list-col:not(:first-child) {
            align-items: center;
        }

        .fund-list-chart-col {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 36px;
            min-width: 0;
        }

        .fund-list-chart-col canvas {
            width: 100%;
            height: 100%;
        }

        .fund-list-col {
            display: flex;
            flex-direction: column;
            gap: 4px;
            overflow: hidden;
        }

        .fund-list-name {
            font-weight: 600;
            font-size: 12px;
            color: var(--primary-800);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
        }

        .fund-list-name:hover {
            color: var(--primary-600);
        }

        .fund-list-code {
            font-size: 12px;
            color: var(--primary-500);
        }

        .fund-list-date {
            font-size: 10px;
            color: var(--primary-400);
            margin-top: 4px;
        }

        .fund-list-subvalue {
            font-size: 12px;
            color: var(--primary-400);
        }

        .fund-list-date-label {
            font-size: 12px;
            color: var(--primary-400);
            margin-top: 2px;
        }

        .fund-list-profit-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .fund-list-profit-amount {
            font-size: 14px;
            font-weight: 600;
        }

        .fund-list-profit-rate {
            font-size: 14px;
        }

        .fund-list-profit-amount.profit,
        .fund-list-profit-rate.profit {
            color: var(--accent-red);
        }

        .fund-list-profit-amount.loss,
        .fund-list-profit-rate.loss {
            color: var(--accent-green);
        }

        .fund-list-actions {
            display: flex;
            gap: 4px;
            flex-wrap: nowrap;
        }

        .fund-list-actions:has(.btn:nth-child(4)) {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        @media (max-width: 1024px) {
            .fund-list-actions {
                display: grid;
                grid-template-columns: 1fr 1fr;
            }
        }

        .fund-list-actions .btn {
            height: 20px;
            padding: 4px 12px;
            font-size: 12px;
            border-radius: 6px;
        }

        .fund-card .btn {
            height: 20px;
            padding: 4px 12px;
            font-size: 10px;
        }

        .fund-detail-modal-content .btn {
            height: 20px;
            padding: 4px 12px;
            font-size: 10px;
        }

        .fund-list-value {
            font-size: 14px;
            font-weight: 500;
        }

        .fund-list-value.positive,
        .fund-list-value.profit {
            color: var(--accent-red);
        }

        .fund-list-value.negative,
        .fund-list-value.loss {
            color: var(--accent-green);
        }

        .fund-list-label {
            font-size: 12px;
            color: var(--primary-500);
        }

        /* 基金详情弹窗 */
        .modal .fund-detail-modal-content {
            max-width: 590px;
            max-height: 96vh;
            overflow-y: auto;
            width: 92%;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .fund-detail-modal-content::-webkit-scrollbar,
        .about-legal-scroll::-webkit-scrollbar,
        #aboutModal .modal-content::-webkit-scrollbar,
        #buyModal .modal-content::-webkit-scrollbar,
        #sellModal .modal-content::-webkit-scrollbar {
            display: none;
        }

        #aboutModal .modal-content,
        #buyModal .modal-content,
        #sellModal .modal-content {
            max-height: 88vh;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .fund-detail-back-btn {
            display: none;
        }

        .fund-detail-modal-content .fund-card {
            box-shadow: none;
            background: transparent;
            padding: 0;
        }

        .fund-detail-modal-content .fund-card:hover {
            transform: none;
        }

        .fund-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .fund-title {
            flex: 1;
        }

        .fund-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary-800);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
        }

        .fund-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 4px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: 600;
            white-space: nowrap;
        }

        .fund-badge.holding {
            background: var(--accent-red);
            color: white;
        }

        .fund-badge.watching {
            background: var(--accent-warm);
            color: #7a6400;
        }

        .fund-badge.exchange {
            background: var(--accent-blue-bg);
            color: var(--primary-600);
            margin-left: 4px;
        }

        .fund-badge.sip {
            background: var(--accent-green-bg);
            color: var(--accent-green);
            margin-left: 4px;
        }

        .fund-code {
            font-size: 12px;
            color: var(--primary-500);
        }

        .fund-star-btn {
            background: none;
            border: none;
            padding: 0 4px;
            margin-left: 4px;
            cursor: pointer;
            color: var(--text-tertiary, #707070);
            display: inline-flex;
            align-items: center;
            vertical-align: middle;
            transition: color 0.15s ease;
            line-height: 1;
            -webkit-tap-highlight-color: transparent;
        }
        @media (hover: hover) and (pointer: fine) {
            .fund-star-btn:hover { color: #FFB400; }
        }
        .fund-star-btn.starred { color: #FFB400; }
        .fund-code-star {
            color: #FFB400;
            flex-shrink: 0;
            display: block;
            transform: translateY(-0.5px);
        }
        .fund-code:has(.fund-code-star),
        .fund-list-code:has(.fund-code-star),
        .mobile-fund-code:has(.fund-code-star) {
            display: flex;
            align-items: center;
            gap: 4px;
            line-height: 1;
        }

        .fund-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 12px;
        }

        .info-item {
            display: flex;
            flex-direction: column;
        }

        .info-label {
            font-size: 10px;
            color: var(--primary-500);
            margin-bottom: 4px;
        }

        .info-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary-800);
        }

        .info-value.positive {
            color: var(--accent-red); /* 涨：鲜艳红色 */
        }

        .info-value.negative {
            color: var(--accent-green); /* 跌：鲜艳绿色 */
        }

        .percentage-container {
            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
        }

        .percentage {
            font-size: 16px;
            font-weight: 700;
            padding: 8px 12px;
            border-radius: 6px;
            flex-shrink: 0;
        }

        .percentage.positive {
            color: var(--accent-red); /* 涨：鲜艳红色 */
            background: rgba(176, 122, 122, 0.15);
        }

        .percentage.negative {
            color: var(--accent-green); /* 跌：鲜艳绿色 */
            background: rgba(122, 158, 126, 0.15);
        }

        .daily-profit {
            font-size: 16px;
            font-weight: 700;
            padding: 8px 12px;
            border-radius: 6px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .daily-profit.positive {
            color: var(--accent-red); /* 涨：鲜艳红色 */
            background: rgba(176, 122, 122, 0.15);
        }

        .daily-profit.negative {
            color: var(--accent-green); /* 跌：鲜艳绿色 */
            background: rgba(122, 158, 126, 0.15);
        }

        .chart-container {
            position: relative;
            height: 116px;
            margin-bottom: 8px;
        }

        .update-time {
            font-size: 10px;
            color: var(--primary-500);
            text-align: center;
        }

        /* 持仓信息样式 */
        .position-info {
            background: var(--primary-50);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 12px;
        }

        .position-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .position-header h4 {
            font-size: 12px;
            color: var(--primary-500);
            margin: 0;
        }

        .position-actions {
            display: flex;
            gap: 4px;
        }

        .position-actions .btn {
            font-size: 12px;
        }

        .position-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .position-item {
            display: flex;
            flex-direction: column;
        }

        .position-label {
            font-size: 10px;
            color: var(--primary-600);
            margin-bottom: 4px;
        }

        .position-value {
            font-size: 12px;
            font-weight: 600;
            color: var(--primary-800);
        }

        .position-value.profit {
            color: var(--accent-red); /* 盈利：鲜艳红色 */
        }

        .position-value.loss {
            color: var(--accent-green); /* 亏损：鲜艳绿色 */
        }

        .no-position {
            text-align: center;
            color: var(--primary-500);
            font-size: 12px;
            padding: 8px;
        }

        .loading {
            text-align: center;
            padding: 32px;
            color: var(--primary-600);
            font-size: 14px;
        }

        .empty-state {
            text-align: center;
            padding: 48px 16px;
            background: var(--bg-card);
            border-radius: 12px;
            color: var(--primary-600);
        }

        .empty-state h2 {
            margin-bottom: 8px;
            color: var(--primary-800);
        }

        /* 模态框样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(100, 116, 139, 0.6);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        /* 确认弹窗需要最高层级，确保不被其他 modal 遮挡 */
        #customConfirmModal {
            z-index: 1001;
        }

        .modal.active {
            display: flex;
            touch-action: none;
            overscroll-behavior: none;
        }

        .modal-mobile-center {
            display: inherit;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 24px;
            max-width: 385px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            overscroll-behavior: contain;
            touch-action: auto;
            -webkit-overflow-scrolling: touch;
        }

        .modal-confirm {
            max-width: 462px;
            max-height: 85vh;
        }

        /* 截图导入弹窗 */
        .screenshot-import-modal-content {
            max-width: 600px;
            width: 90%;
            max-height: 85vh;
            overflow-y: auto;
            background: var(--bg-warm);
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .screenshot-import-modal-content::-webkit-scrollbar {
            display: none;
        }

        .screenshot-upload-area {
            border: 2px dashed var(--primary-200);
            border-radius: var(--radius-md);
            padding: 32px 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--primary-500);
            background: var(--bg-surface);
            min-height: 160px;
            box-sizing: border-box;
        }

        .screenshot-upload-area:hover {
            border-color: var(--primary-400);
            background: var(--primary-25);
        }

        .screenshot-upload-area.dragover {
            border-color: var(--primary-500);
            background: var(--primary-50);
        }

        .screenshot-preview {
            position: relative;
            margin-top: 16px;
            border-radius: var(--radius-sm);
            overflow: hidden;
            border: 1px solid var(--primary-100);
            background: var(--bg-surface);
            min-height: 160px;
            box-sizing: border-box;
        }

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

        .screenshot-preview-item {
            position: relative;
            aspect-ratio: 1;
            border-radius: var(--radius-sm);
            overflow: hidden;
            border: 1px solid var(--primary-100);
        }

        .screenshot-preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .screenshot-remove-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        .screenshot-results {
            margin-top: 16px;
        }

        .screenshot-results-cards {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding-right: 4px;
        }

        .screenshot-result-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .screenshot-result-card {
            background: var(--bg-surface);
            border-radius: var(--radius-md);
            padding: 14px 16px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
            flex: 1;
            min-width: 0;
        }

        .screenshot-result-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
            gap: 8px;
        }

        .screenshot-result-card-divider {
            height: 1px;
            background: var(--primary-100);
            margin: 0 0 12px;
        }

        .screenshot-result-card-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex: 1;
        }

        .screenshot-result-card-delete {
            cursor: pointer;
            background: none;
            border: none;
            padding: 4px;
            border-radius: 4px;
            transition: background 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 32px;
            height: 32px;
        }

        .screenshot-result-card-delete:hover {
            background: var(--accent-red-light, rgba(192, 80, 77, 0.1));
        }

        .screenshot-result-card-body {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .screenshot-result-card-row {
            display: flex;
            gap: 12px;
        }

        .screenshot-result-card-field {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }

        .screenshot-result-card-field label {
            font-size: 10px;
            color: var(--primary-500);
            font-weight: 500;
        }

        .screenshot-result-card-field input {
            width: 100%;
            padding: 0;
            border: none;
            border-radius: 0;
            font-size: 14px;
            background: transparent;
            color: var(--text-primary);
            box-sizing: border-box;
            outline: none;
        }

        .screenshot-result-card-field input:focus {
            font-size: 16px;
            border-bottom: 1px solid var(--primary-200);
        }

        .screenshot-result-card-value {
            padding: 0;
            font-size: 14px;
            color: var(--text-primary);
            line-height: 1.4;
            word-break: break-all;
        }

        .screenshot-result-existing {
            font-size: 11px;
            color: var(--accent-red);
            margin-top: 2px;
        }

        .screenshot-loading {
            text-align: center;
            padding: 32px;
            color: var(--primary-500);
            font-size: 12px;
        }

        .screenshot-import-title {
            font-size: 16px;
            font-weight: 600;
        }

        .screenshot-import-hint {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary-500);
            margin: -8px 0 12px;
            text-align: center;
        }

        .screenshot-import-desc {
            font-size: 10px;
            color: var(--primary-500);
            margin: 4px 0 8px;
            text-align: left;
        }

        .screenshot-import-footer {
            font-size: 10px;
            color: var(--primary-400);
            margin: 8px 0;
            text-align: center;
        }

        .screenshot-result-hint {
            font-size: 10px;
            color: var(--primary-400);
            margin: 8px 0 0;
            text-align: left;
            line-height: 1.5;
        }

        /* 截图导入结果卡片 V2 */
        .screenshot-result-card-v2 {
            background: var(--bg-surface);
            border-radius: 12px;
            margin: 0 24px 12px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
            border: 1px solid var(--primary-200);
        }
        .screenshot-result-card-header-v2 {
            background: var(--primary-500);
            padding: 10px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            border-radius: 12px 12px 0 0;
        }
        [data-theme="default"] .screenshot-result-card-header-v2 {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        [data-theme="apple"] .screenshot-result-card-header-v2 {
            background: #0066cc;
        }
        [data-theme="binance"] .screenshot-result-card-header-v2 {
            background: #fcd535;
        }
        [data-theme="binance"] .screenshot-result-card-title,
        [data-theme="binance"] .screenshot-result-card-code {
            color: #1e2329;
        }
        .screenshot-result-card-title {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex: 1;
        }
        .screenshot-result-card-code {
            font-size: 12px;
            color: rgba(255,255,255,0.85);
            white-space: nowrap;
            flex-shrink: 0;
        }
        .screenshot-result-card-body-v2 {
            padding: 12px 14px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .screenshot-result-card-row-v2 {
            display: flex;
            gap: 12px;
            align-items: center;
            min-height: 32px;
        }
        .screenshot-result-card-cell-v2 {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }
        .screenshot-result-card-cell-v2 label {
            font-size: 12px;
            color: var(--primary-500);
            font-weight: 400;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .screenshot-result-card-cell-v2 .screenshot-result-card-value {
            font-size: 12px;
            color: var(--text-primary);
            font-weight: 600;
            text-align: right;
            flex: 1;
            min-width: 0;
            word-break: break-all;
        }
        .screenshot-account-custom-select {
            flex: 1;
            min-width: 0;
            height: 32px;
        }
        .screenshot-account-custom-select .custom-select-trigger {
            height: 32px;
            padding: 0 8px;
            font-size: 12px;
        }
        .screenshot-result-card-divider-dashed {
            height: 0;
            border-top: 1px dashed var(--primary-200);
            margin: 2px 0;
        }
        .screenshot-result-card-delete-text {
            text-align: center;
            font-size: 12px;
            color: var(--accent-red);
            padding: 4px 0;
            cursor: pointer;
            font-weight: 600;
        }
        .screenshot-result-card-delete-text:active {
            opacity: 0.7;
        }
        .screenshot-results {
            margin-top: 12px;
        }
        .screenshot-results > p {
            margin-left: 24px;
            margin-right: 24px;
            font-size: 14px;
            font-weight: 600;
        }
        .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;
        }
        .screenshot-filtered-hint svg {
            flex-shrink: 0;
            margin-top: 2px;
            color: var(--accent-warm);
        }

        .screenshot-loading .spinner {
            width: 32px;
            height: 32px;
            border: 3px solid var(--primary-100);
            border-top-color: var(--primary-500);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 12px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* 持仓股票表格（桌面端） */
        .stock-holdings-wrapper {
            max-height: 420px;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .stock-holdings-wrapper::-webkit-scrollbar {
            display: none;
        }

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

        .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: 13px;
            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 10px;
            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: 16px;
        }

        .stock-holdings-table tbody td {
            padding: 12px 10px;
            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: 16px;
        }

        .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: 24px;
            color: var(--text-secondary);
            font-size: 14px;
        }

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

        .confirm-message {
            padding: 0;
            background: transparent;
            border-radius: 0;
            margin-bottom: 16px;
            font-size: 12px;
            line-height: 1.6;
            color: var(--primary-800);
            max-height: 60vh;
            overflow-y: auto;
        }

        .confirm-message::-webkit-scrollbar {
            width: 6px;
        }

        .confirm-message::-webkit-scrollbar-track {
            background: var(--primary-50);
            border-radius: 3px;
        }

        .confirm-message::-webkit-scrollbar-thumb {
            background: var(--primary-300);
            border-radius: 3px;
        }

        .confirm-message::-webkit-scrollbar-thumb:hover {
            background: var(--primary-500);
        }

        /* 云端冲突解决弹窗 3 个按钮纵向布局 */
        .cloud-conflict-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .cloud-conflict-actions .btn {
            width: 100%;
        }
        .cloud-conflict-meta {
            font-size: 12px;
            color: var(--primary-600);
            background: var(--primary-100);
            border-radius: 6px;
            padding: 8px 10px;
            margin-bottom: 8px;
        }
        .cloud-conflict-meta strong {
            color: var(--primary-800);
        }

        .confirm-fund-info {
            background: var(--primary-500);
            color: white;
            padding: 16px;
            border-radius: 9px;
            margin-bottom: 16px;
            box-shadow: 0 3px 12px rgba(100, 116, 139, 0.3);
        }

        .confirm-fund-name {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .confirm-fund-code {
            font-size: 12px;
            opacity: 0.9;
            font-family: 'Courier New', monospace;
        }

        .confirm-section {
            background: white;
            border: 1px solid var(--primary-100);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 12px;
        }

        .confirm-section-title {
            font-size: 12px;
            font-weight: bold;
            color: #495057;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .confirm-detail-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .confirm-detail-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .confirm-detail-item.full-width {
            grid-column: 1 / -1;
        }

        .confirm-detail-label {
            font-size: 12px;
            color: #6c757d;
        }

        .confirm-detail-value {
            font-size: 12px;
            font-weight: 600;
            color: #212529;
        }

        .confirm-detail-value.highlight {
            color: var(--accent-red);
            font-size: 12px;
        }

        .confirm-warning {
            background: var(--accent-red);
            color: white;
            padding: 12px;
            border-radius: 8px;
            margin-top: 16px;
            box-shadow: 0 3px 12px rgba(176, 122, 122, 0.3);
        }

        .confirm-warning-title {
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .confirm-warning-text {
            font-size: 12px;
            line-height: 1.6;
            opacity: 0.95;
        }

        .confirm-final-warning {
            background: var(--accent-red);
            color: white;
            padding: 16px;
            border-radius: 9px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(176, 122, 122, 0.4);
        }

        .confirm-final-icon {
            font-size: 32px;
            margin-bottom: 12px;
        }

        .confirm-final-title {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 12px;
        }

        .confirm-final-content {
            font-size: 12px;
            line-height: 1.6;
            margin-bottom: 8px;
        }

        .confirm-final-note {
            font-size: 12px;
            opacity: 0.9;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .modal-header h2 {
            font-size: 16px;
            color: var(--primary-800);
            margin: 0;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 20px;
            color: var(--primary-500);
            cursor: pointer;
            padding: 0;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-btn:hover {
            color: var(--primary-800);
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label:not(.toggle-switch) {
            display: block;
            font-size: 12px;
            color: #475569;
            margin-bottom: 4px;
            font-weight: 500;
        }

        .form-group input {
            width: 100%;
            height: 40px;
            padding: 0 8px;
            border: 2px solid var(--primary-200);
            border-radius: 6px;
            font-size: 12px;
            transition: all 0.3s;
        }

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

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-600);
            box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.1);
        }

        .form-group small {
            display: block;
            margin-top: 4px;
            color: var(--primary-500);
            font-size: 10px;
        }

        .form-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
            margin-top: 16px;
        }

        .form-actions button {
            padding: 8px 16px;
        }

        /* 交易历史样式 */
        #transactionHistoryContent {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        #transactionHistoryContent::-webkit-scrollbar {
            display: none;
        }
        .transaction-item {
            padding: 12px;
            border-bottom: 1px solid var(--primary-200);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

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

        .transaction-info {
            flex: 1;
        }

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

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

        .transaction-account-tag {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            background: var(--primary-100);
            color: var(--primary-600);
            margin-right: 4px;
            border: 1px solid var(--primary-200);
        }

        .transaction-details {
            font-size: 12px;
            color: var(--primary-600);
            margin-top: 4px;
        }

        .transaction-date {
            font-size: 12px;
            color: var(--primary-500);
            margin-top: 4px;
        }

        /* 快速卖出按钮样式 */
        .quick-sell-buttons {
            display: flex;
            gap: 4px;
            margin-top: 8px;
            margin-bottom: 4px;
        }

        .quick-sell-btn {
            flex: 1;
            padding: 4px 8px;
            border: 2px solid var(--primary-200);
            border-radius: 5px;
            background: var(--bg-surface);
            color: var(--primary-600);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .quick-sell-btn:hover {
            border-color: var(--primary-600);
            color: var(--primary-600);
            background: rgba(100, 116, 139, 0.05);
            transform: translateY(-1px);
        }

        .quick-sell-btn:active {
            transform: translateY(0);
        }

        @media (max-width: 924px) {
            .overview-stats {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 693px) {
            .overview-stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 591px) {
            .funds-grid {
                grid-template-columns: 1fr;
            }
            
            .modal-content {
                padding: 16px;
            }

            .modal-confirm {
                max-width: 95%;
            }

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

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

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

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

            .confirm-final-icon {
                font-size: 24px;
            }

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

            .percentage-container {
                flex-wrap: wrap;
            }

            .percentage {
                font-size: 12px;
                padding: 4px 12px;
            }

            .daily-profit {
                font-size: 12px;
                padding: 4px 12px;
            }

            .quick-sell-btn {
                font-size: 12px;
                padding: 4px 8px;
            }

            .overview-stats {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .stat-item {
                padding: 12px;
            }

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

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

            .overview-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
        }


        /* 页面容器统一淡入动画 */
        #fundsContainer,
        #profileContainer {
            animation: fadeIn 0.3s ease;
        }

        /* ========== v9.0 红利低波模块样式 ========== */
        .divlowvol-container {
            animation: fadeIn 0.3s ease;
            position: relative;
        }

        .divlowvol-index-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .dlv-tab {
            padding: 5px 14px;
            border: 1px solid var(--primary-100);
            border-radius: 20px;
            background: var(--bg-card);
            color: var(--primary-600);
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }

        .dlv-tab:hover {
            border-color: var(--primary-600);
            color: var(--primary-600);
        }

        .dlv-tab.active {
            background: var(--primary-500);
            color: white;
            border-color: transparent;
        }

        .divlowvol-metrics-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }

        .divlowvol-metric-card {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 16px;
            text-align: center;
            box-shadow: var(--shadow-sm);
        }

        .divlowvol-metric-card .stat-label {
            font-size: 12px;
            color: var(--primary-500);
            margin-bottom: 8px;
        }

        .divlowvol-metric-card .stat-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .divlowvol-metric-card .stat-value.positive {
            color: var(--accent-red);
        }

        .divlowvol-metric-card .stat-value.negative {
            color: var(--accent-green);
        }

        .divlowvol-metric-card .stat-sub {
            font-size: 10px;
            color: var(--primary-500);
            margin-top: 4px;
        }

        .divlowvol-table-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 8px;
        }

        .dlv-table-tab {
            padding: 5px 14px;
            border: 1px solid var(--primary-100);
            border-radius: 20px;
            background: var(--bg-card);
            color: var(--primary-600);
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }

        .dlv-table-tab:hover {
            border-color: var(--primary-600);
            color: var(--primary-600);
        }

        .dlv-table-tab.active {
            background: var(--primary-500);
            color: white;
            border-color: transparent;
        }

        .divlowvol-card {
            background: var(--bg-card);
            backdrop-filter: blur(8px);
            border-radius: 12px;
            padding: 16px;
            box-shadow: var(--shadow-lg);
            margin-bottom: 16px;
        }

        .divlowvol-chart-wrap {
            height: 400px;
            position: relative;
            margin-bottom: 8px;
        }

        .divlowvol-date {
            text-align: center;
            font-size: 10px;
            color: var(--primary-600);
            margin-bottom: 12px;
        }

        .divlowvol-table-wrap {
            border: 1px solid var(--primary-100);
            border-radius: 8px;
            overflow: hidden;
        }

        .divlowvol-yield-table-wrap {
            border: 1px solid var(--primary-100);
            border-radius: 8px;
            overflow: hidden;
        }

        .divlowvol-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }

        .divlowvol-table thead {
            position: sticky;
            top: 0;
            background: var(--primary-400);
            color: var(--bg-surface);
            z-index: 1;
        }

        .divlowvol-table th {
            padding: 8px 8px;
            text-align: center;
            font-weight: 500;
            font-size: 12px;
        }

        .divlowvol-table td {
            padding: 8px 8px;
            text-align: center;
            border-bottom: 1px solid var(--primary-50);
        }

        .divlowvol-table tbody tr:hover {
            background: var(--primary-25);
        }

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

        .divlowvol-table td.positive {
            color: var(--accent-red);
            font-weight: 500;
        }

        .divlowvol-table td.negative {
            color: var(--accent-green);
            font-weight: 500;
        }

        .divlowvol-page {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding-top: 12px;
            flex-wrap: wrap;
        }

        .dlv-page-jump {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: var(--primary-600);
        }

        .dlv-page-jump input {
            border: 1px solid var(--primary-100);
            border-radius: 5px;
        }

        /* iOS 防止输入时页面自动缩放 */
        @supports (-webkit-touch-callout: none) {
            #dlv-jumpInput {
                font-size: 10px;
            }
            #dlv-jumpInput:focus {
                font-size: 16px;
            }
        }

        .divlowvol-source {
            text-align: center;
            font-size: 10px;
            color: var(--primary-500);
            margin-top: 4px;
            margin-bottom: 16px;
        }

        .dlv-login-mask {
            position: absolute;
            inset: 0;
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(3px);
            z-index: 100;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 12px;
        }

        .dlv-login-mask-content {
            text-align: center;
            padding: 24px 32px;
            background: var(--bg-card);
            border: 0.5px solid var(--primary-100);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
        }

        .dlv-login-mask-content p {
            font-size: 14px;
            color: var(--primary-800);
            margin-bottom: 12px;
            font-weight: 500;
        }

        /* ========== Theme Switcher ========== */
        .header-actions-right {
            position: absolute;
            top: 19px;
            right: 19px;
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 101;
        }

        .theme-toggle {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 12px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 500;
            transition: all 0.2s ease-out;
            cursor: pointer;
            background: var(--bg-card);
            color: var(--primary-600);
            border: 1px solid var(--primary-100);
            box-shadow: var(--shadow-sm);
            z-index: 101;
        }

        .theme-toggle:hover {
            background: var(--primary-50);
            box-shadow: var(--shadow-md);
        }

        .pricing-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 12px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 500;
            transition: all 0.2s ease-out;
            cursor: pointer;
            background: var(--bg-card);
            color: var(--primary-600);
            border: 1px solid var(--primary-100);
            box-shadow: var(--shadow-sm);
            z-index: 101;
        }

        .pricing-btn:hover {
            background: var(--primary-50);
            box-shadow: var(--shadow-md);
        }

        .about-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 12px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 500;
            transition: all 0.2s ease-out;
            cursor: pointer;
            background: var(--bg-card);
            color: var(--primary-600);
            border: 1px solid var(--primary-100);
            box-shadow: var(--shadow-sm);
            z-index: 101;
        }

        .about-btn:hover {
            background: var(--primary-50);
            box-shadow: var(--shadow-md);
        }

        .about-back-btn,
        .screenshot-back-btn {
            display: none;
        }

        .about-contact-list {
            background: var(--bg-card);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            margin-top: 16px;
        }

        .about-contact-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            border-bottom: 1px solid var(--primary-100);
            gap: 0;
        }

        .about-contact-item:last-child {
            border-bottom: none;
        }

        .about-contact-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            margin-right: 12px;
        }

        .about-contact-icon svg {
            width: 20px;
            height: 20px;
        }

        .about-contact-info {
            display: flex;
            flex-direction: row;
            align-items: center;
            flex: 1;
            gap: 12px;
        }

        .about-contact-label {
            font-size: 14px;
            font-weight: 600;
            line-height: 1.2;
            color: var(--text-primary);
        }

        .about-contact-value {
            font-size: 12px;
            line-height: 1.2;
            color: var(--text-secondary);
            margin-left: auto;
        }

        .about-contact-value:hover {
            color: var(--primary-500);
        }

        .about-disclaimer {
            margin-top: 24px;
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .theme-toggle-dropdown {
            position: absolute;
            top: 42px;
            right: 0;
            min-width: 140px;
            background: var(--bg-surface);
            border: 1px solid var(--primary-100);
            border-radius: 8px;
            box-shadow: var(--shadow-lg);
            padding: 4px;
            display: none;
            flex-direction: column;
            gap: 4px;
            z-index: 102;
        }

        .theme-toggle-dropdown.active {
            display: flex;
        }

        .theme-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            color: var(--primary-700);
            cursor: pointer;
            transition: all 0.15s;
            border: none;
            background: transparent;
        }

        .theme-option:hover {
            background: var(--primary-50);
        }

        .theme-option.active {
            background: var(--primary-100);
            color: var(--primary-800);
        }
        .theme-swatch {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 1px solid var(--primary-200);
            flex-shrink: 0;
        }

        .theme-swatch.standard { background: #F0F8FF; border-color: #667eea; }
        .theme-swatch.letter { background: #F8F7F4; }
        .theme-swatch.ink { background: #1E293B; }
        .theme-swatch.forest { background: #E3F0E5; }
        .theme-swatch.coral { background: #F9EBE7; }
        .theme-swatch.pure { background: #FFFFFF; border-color: #D4D4D4; }
        .theme-swatch.apple { background: #F5F5F7; border-color: #0066cc; }
        .theme-swatch.binance { background: #0b0e11; border-color: #fcd535; }

        /* 墨夜选项文字颜色：浅色主题下未选中深色，选中浅色；暗色主题下跟随主题 */
        /* Binance选项文字颜色 */
        .theme-option[data-theme="binance"] {
            color: #181a20;
        }
        .theme-option[data-theme="binance"]:hover {
            color: #181a20;
        }
        .theme-option[data-theme="binance"].active {
            color: var(--primary-800);
        }

        [data-theme="binance"] .theme-toggle-dropdown {
            background: #1e2329;
            border-color: #2b3139;
        }
        [data-theme="binance"] .theme-option {
            color: #707a8a;
        }
        [data-theme="binance"] .theme-option:hover {
            background: #2b3139;
            color: #eaecef;
        }
        [data-theme="binance"] .theme-option.active {
            background: #fcd535;
            color: #181a20;
        }
        [data-theme="binance"] .theme-option[data-theme="binance"] {
            color: #eaecef;
        }
        [data-theme="binance"] .theme-option[data-theme="binance"]:hover {
            color: #eaecef;
        }
        [data-theme="binance"] .theme-option[data-theme="binance"].active {
            color: #181a20;
        }

        /* 移动端表格滑动提示 */
        .mobile-table-hint {
            display: none;
        }

        /* 移动端专用元素在桌面端隐藏 */
        .mobile-page-title {
            display: none;
        }

        /* 移动端基金详情二级页面默认隐藏；style.m.css 仅在 ≤768px 时加载并覆盖为可见 */
        .fund-detail-page {
            display: none;
        }

        /* 移动端底部导航 */
        .mobile-nav-bar {
            display: none;
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            height: 56px;
            background: rgba(255,255,255,0.72);
            backdrop-filter: blur(24px) saturate(1.2);
            -webkit-backdrop-filter: blur(24px) saturate(1.2);
            border-radius: 26px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
            border: 1px solid rgba(255,255,255,0.3);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 0 6px;
            gap: 2px;
        }

        .mobile-nav-item {
            flex: none;
            min-width: 48px;
            height: 44px;
            border-radius: 22px;
            border: none;
            background: rgba(255,255,255,0.5);
            color: var(--text-primary);
            font-size: 9px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            padding: 2px 6px;
            gap: 4px;
            -webkit-tap-highlight-color: transparent;
        }

        .mobile-nav-item svg {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
        }

        .mobile-nav-item.active {
            background: transparent;
            color: #2563eb;
            font-weight: 600;
            font-size: 10px;
        }

        .mobile-nav-item.active svg {
            width: 23px;
            height: 23px;
        }

        /* 移动端基金详情底部面板 */
        .mobile-fund-sheet {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1500;
        }

        .mobile-fund-sheet.active {
            display: block;
        }

        .mobile-fund-sheet-overlay {
            position: absolute;
            inset: 0;
            background: rgba(100, 116, 139, 0.45);
        }

        .mobile-fund-sheet-content {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            max-height: 85vh;
            background: #fff;
            border-radius: 16px 16px 0 0;
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform 0.25s ease-out;
        }

        .mobile-fund-sheet.active .mobile-fund-sheet-content {
            transform: translateY(0);
        }

        .mobile-fund-sheet-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            border-bottom: 1px solid var(--primary-50);
            flex-shrink: 0;
        }

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

        .mobile-fund-sheet-close {
            width: 32px;
            height: 32px;
            border: none;
            background: var(--primary-50);
            border-radius: 50%;
            font-size: 16px;
            color: var(--primary-600);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-fund-sheet-body {
            padding: 12px 16px 24px;
            overflow-y: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
            flex: 1;
        }

        /* 移动端基金列表表格 */
        .mobile-fund-table {
            width: 100%;
            table-layout: fixed;
            border-collapse: collapse;
            font-size: 12px;
            background: var(--bg-card);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(100, 116, 139, 0.08);
        }

        .mobile-fund-table th:nth-child(1),
        .mobile-fund-table td:nth-child(1) { width: 38%; }
        .mobile-fund-table th:nth-child(2),
        .mobile-fund-table td:nth-child(2) { width: 18%; }
        .mobile-fund-table th:nth-child(3),
        .mobile-fund-table td:nth-child(3) { width: 22%; }
        .mobile-fund-table th:nth-child(4),
        .mobile-fund-table td:nth-child(4) { width: 22%; }

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

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

        .mobile-fund-table th:first-child {
            text-align: left;
            padding-left: 12px;
        }

        .mobile-fund-date {
            font-size: 12px;
            font-weight: 400;
            color: var(--primary-500);
            margin-top: 4px;
            line-height: 1.4;
        }

        .mobile-fund-subvalue {
            font-size: 12px;
            font-weight: 400;
            color: var(--primary-500);
            margin-top: 4px;
            line-height: 1.4;
        }

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

        .mobile-fund-table td:first-child {
            text-align: left;
            padding-left: 12px;
        }

        .mobile-fund-table tbody tr:last-child td {
            border-bottom: none;
        }

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

        .mobile-fund-name {
            font-size: 14px;
            font-weight: 500;
            color: var(--primary-800);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mobile-fund-code {
            font-size: 12px;
            color: var(--primary-500);
        }

        .mobile-fund-percentage {
            font-size: 14px;
            font-weight: 700;
            white-space: nowrap;
        }

        .mobile-fund-percentage.positive {
            color: var(--accent-red);
        }

        .mobile-fund-percentage.negative {
            color: var(--accent-green);
        }

        .mobile-fund-daily.positive {
            color: var(--accent-red);
        }

        .mobile-fund-daily.negative {
            color: var(--accent-green);
        }

        .mobile-fund-profit.positive {
            color: var(--accent-red);
        }

        .mobile-fund-profit.negative {
            color: var(--accent-green);
        }

        .mobile-fund-daily {
            font-size: 14px;
            font-weight: 700;
            white-space: nowrap;
        }

        .mobile-fund-profit {
            font-size: 12px;
            color: var(--primary-800);
            white-space: nowrap;
        }

        .mobile-fund-profit .rate {
            font-size: 12px;
            color: var(--primary-500);
            margin-top: 4px;
        }

        .mobile-fund-btn {
            height: 20px;
            padding: 4px 8px;
            border: none;
            border-radius: 6px;
            background: var(--primary-400);
            color: var(--bg-surface);
            font-size: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-fund-btn-delete {
            background: var(--accent-red);
            margin-left: 4px;
        }

        /* ========== 标普500 & VIX 样式 ========== */
        .sp500vix-container {
            animation: fadeIn 0.3s ease;
            position: relative;
        }

        .sp500vix-metrics-card {
            margin-bottom: 16px;
        }

        .sp500vix-metrics {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .metric-card {
            padding: 12px 8px;
            border-radius: 12px;
            background: var(--primary-25);
            text-align: center;
            transition: background 0.2s;
        }

        .metric-card .metric-label {
            font-size: 12px;
            color: var(--primary-600);
            margin-bottom: 8px;
        }

        .metric-card .metric-value {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .metric-card .metric-date {
            font-size: 10px;
            color: var(--primary-500);
        }

        .metric-card .metric-change {
            font-size: 12px;
            font-weight: 600;
            margin-top: 2px;
            margin-bottom: 2px;
        }

        .metric-change.up {
            color: var(--accent-red);
        }

        .metric-change.down {
            color: var(--accent-green);
        }

        .metric-card .metric-hint {
            font-size: 10px;
            color: var(--primary-500);
            margin-top: 2px;
            margin-bottom: 2px;
        }

        .metric-card.vix-green {
            background: var(--accent-green-bg);
        }
        .metric-card.vix-green .metric-value {
            color: var(--accent-green);
        }
        .metric-card.vix-yellow {
            background: #F5F0E8;
        }
        .metric-card.vix-yellow .metric-value {
            color: #D4A574;
        }
        .metric-card.vix-red {
            background: var(--accent-red-bg);
        }
        .metric-card.vix-red .metric-value {
            color: var(--accent-red);
        }

        .vix-green { color: var(--accent-green); }
        .vix-yellow { color: #D4A574; }
        .vix-red { color: var(--accent-red); }

        .pricing-modal-content {
            max-width: 480px;
        }

        .pricing-table-wrap {
            margin: 16px 0;
            border: 1px solid var(--primary-100);
            border-radius: 8px;
            overflow: hidden;
        }

        .pricing-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }

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

        [data-theme="default"] .pricing-table thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        [data-theme="forest"] .pricing-table thead {
            background: #5D9465;
        }

        [data-theme="coral"] .pricing-table thead {
            background: #C47860;
        }

        [data-theme="apple"] .pricing-table thead {
            background: #0066cc;
        }

        [data-theme="binance"] .pricing-table thead {
            background: #fcd535;
            color: #181a20;
        }

        .pricing-table th {
            padding: 8px 12px;
            text-align: left;
            font-weight: 500;
        }

        .pricing-table td {
            padding: 8px 12px;
            border-bottom: 1px solid var(--primary-100);
            color: var(--primary-700);
        }

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

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

        .pricing-table tbody tr:nth-child(even) {
            background: var(--primary-25);
        }

        .pricing-footer {
            text-align: center;
            padding-top: 8px;
        }

        #authModal .modal-content a,
        #forgotPasswordModal .modal-content a {
            color: var(--primary-500);
            font-weight: 600;
            text-decoration: underline;
        }

        #authModal .modal-content a:hover,
        #forgotPasswordModal .modal-content a:hover {
            color: var(--primary-600);
        }

        /* ========== QDII 盘前估值模块 ========== */
        .qdii-estimate-entry {
            display: none;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            margin: 12px 0;
            background: var(--bg-card);
            border-radius: 12px;
            box-shadow: 0 1px 3px var(--shadow-color);
            cursor: pointer;
            transition: background 0.2s;
        }

        .qdii-estimate-entry:active {
            background: var(--primary-50);
        }

        .qdii-estimate-entry-content {
            flex: 1;
            min-width: 0;
        }

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

        .qdii-estimate-entry-badge {
            font-size: 11px;
            font-weight: 500;
            padding: 1px 6px;
            background: var(--primary-100);
            color: var(--primary-400);
            border-radius: 4px;
        }

        .qdii-estimate-entry-desc {
            font-size: 12px;
            color: var(--primary-500);
        }

        .qdii-estimate-entry-arrow {
            flex-shrink: 0;
            margin-left: 8px;
            opacity: 0.6;
        }

        .qdii-estimate-fx-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            margin: 0 16px 12px;
            background: var(--bg-card);
            border-radius: 10px;
            font-size: 13px;
        }

        .qdii-estimate-fx-label {
            color: var(--primary-500);
        }

        .qdii-estimate-fx-value {
            font-weight: 600;
        }

        /* 特别说明 */
        .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 12px;
            background: var(--bg-card);
            border-radius: 20px;
            padding: 12px 16px;
        }

        .qdii-estimate-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .qdii-estimate-card-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--primary-800);
        }

        .qdii-estimate-card-change {
            font-size: 18px;
            font-weight: 700;
        }

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

        .qdii-estimate-card-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 3px 0;
        }

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

        .qdii-estimate-card-value {
            font-size: 12px;
            font-weight: 600;
            color: var(--primary-700);
            text-align: right;
            word-break: break-all;
        }

        .qdii-estimate-card-holdings {
            padding-top: 6px;
            border-top: 1px dashed var(--primary-200);
        }

        .qdii-estimate-card-holdings-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--primary-600);
            margin-bottom: 8px;
        }

        .qdii-estimate-holding-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 0;
            font-size: 13px;
            border-bottom: 1px solid var(--primary-100);
        }

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

        .qdii-estimate-holding-name {
            color: var(--primary-700);
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .qdii-estimate-holding-weight {
            color: var(--primary-500);
            margin: 0 8px;
            font-size: 12px;
        }

        .qdii-estimate-holding-change {
            font-weight: 600;
            font-size: 13px;
        }

        .qdii-estimate-card-change.positive,
        .qdii-estimate-holding-change.positive {
            color: var(--accent-red);
        }

        .qdii-estimate-card-change.negative,
        .qdii-estimate-holding-change.negative {
            color: var(--accent-green);
        }

        .qdii-estimate-fx-inline-value.positive {
            color: var(--accent-red);
        }

        .qdii-estimate-fx-inline-value.negative {
            color: var(--accent-green);
        }

        .qdii-estimate-card-value .positive {
            color: var(--accent-red);
        }

        .qdii-estimate-card-value .negative {
            color: var(--accent-green);
        }

        .qdii-estimate-calc-bar {
            margin: 0 16px 12px;
            padding: 10px 14px;
            background: var(--primary-50);
            border-radius: 12px;
            font-size: 12px;
            color: var(--primary-500);
            line-height: 1.5;
        }

