        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background: #0d1117;
            color: #c9d1d9;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            min-height: 100vh;
            padding-bottom: calc(70px + env(safe-area-inset-bottom));
        }

        /* ========== 顶部用户信息 ========== */
        .user-header {
            padding: 24px 16px 16px;
            background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
            border-bottom: 1px solid #21262d;
        }
        .user-top {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .user-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, #58a6ff, #1f6feb);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: #fff;
            flex-shrink: 0;
            overflow: hidden;
            cursor: pointer;
        }
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .user-info { flex: 1; min-width: 0; }
        .user-name-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .user-name {
            font-size: 18px;
            font-weight: 600;
            color: #f0f6fc;
        }
        .user-edit {
            font-size: 12px;
            color: #58a6ff;
            cursor: pointer;
            padding: 2px 8px;
            border: 1px solid #30363d;
            border-radius: 4px;
        }
        .user-id {
            font-size: 12px;
            color: #8b949e;
            margin-top: 4px;
        }
        .user-meta {
            display: flex;
            gap: 16px;
            margin-top: 6px;
            font-size: 12px;
            color: #8b949e;
        }
        .user-meta span { display: flex; align-items: center; gap: 4px; }

        /* ========== 会员特权 ========== */
        .vip-card {
            margin: 12px 16px;
            padding: 16px;
            background: linear-gradient(135deg, #1c2128 0%, #161b22 100%);
            border: 1px solid #30363d;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .vip-card-left { flex: 1; }
        .vip-card-title {
            font-size: 15px;
            font-weight: 600;
            color: #f0f6fc;
        }
        .vip-card-desc {
            font-size: 12px;
            color: #8b949e;
            margin-top: 4px;
            line-height: 1.5;
        }
        .vip-card-btn {
            padding: 8px 16px;
            background: linear-gradient(135deg, #f0883e, #d4762a);
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            flex-shrink: 0;
            margin-left: 12px;
        }
        .vip-card-btn:active { opacity: 0.8; }

        /* ========== 资产 ========== */
        .asset-section {
            margin: 12px 16px;
            padding: 16px;
            background: #161b22;
            border: 1px solid #21262d;
            border-radius: 12px;
        }
        .asset-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }
        .asset-title {
            font-size: 14px;
            color: #8b949e;
        }
        .asset-refresh {
            font-size: 18px;
            color: #8b949e;
            cursor: pointer;
        }
        .asset-cards {
            display: flex;
            gap: 10px;
        }
        .asset-card {
            flex: 1;
            padding: 14px;
            border-radius: 10px;
            min-height: 100px;
        }
        .asset-card.primary {
            background: linear-gradient(135deg, #1f6feb, #1158c7);
        }
        .asset-card.secondary {
            background: #21262d;
            border: 1px solid #30363d;
        }
        .asset-card-label {
            font-size: 12px;
            color: rgba(255,255,255,0.7);
        }
        .asset-card-value {
            font-size: 20px;
            font-weight: 700;
            color: #fff;
            margin-top: 4px;
        }
        .asset-card-sub {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            margin-top: 2px;
        }
        .asset-card-btn {
            margin-top: 10px;
            padding: 6px 14px;
            background: rgba(0,0,0,0.3);
            color: #fff;
            font-size: 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }

        /* ========== 功能网格（精简版） ========== */
        .func-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0;
            margin: 12px 16px;
            padding: 12px 0;
            background: #161b22;
            border: 1px solid #21262d;
            border-radius: 12px;
        }
        .func-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 4px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        .func-item:active { background: rgba(255,255,255,0.03); }
        .func-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 6px;
        }
        .func-icon.orange { background: rgba(240,136,62,0.15); }
        .func-icon.red { background: rgba(255,123,114,0.15); }
        .func-icon.cyan { background: rgba(34,211,238,0.15); }
        .func-icon.yellow { background: rgba(234,179,8,0.15); }
        .func-label {
            font-size: 12px;
            color: #c9d1d9;
        }

        /* ========== 热门活动 ========== */
        .activity-section {
            margin: 12px 16px;
        }
        .activity-title {
            font-size: 15px;
            font-weight: 600;
            color: #f0f6fc;
            margin-bottom: 10px;
        }
        .activity-list {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 4px;
        }
        .activity-list::-webkit-scrollbar { display: none; }
        .activity-card {
            flex-shrink: 0;
            width: 160px;
            padding: 12px;
            background: #161b22;
            border: 1px solid #21262d;
            border-radius: 10px;
            cursor: pointer;
        }
        .activity-card:active { background: #1c2128; }
        .activity-card-title {
            font-size: 13px;
            font-weight: 600;
            color: #f0f6fc;
        }
        .activity-card-sub {
            font-size: 11px;
            color: #8b949e;
            margin-top: 4px;
        }
        .activity-card-img {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        /* ========== 菜单列表 ========== */
        .menu-list {
            margin: 12px 16px;
            background: #161b22;
            border: 1px solid #21262d;
            border-radius: 12px;
            overflow: hidden;
        }
        .menu-item {
            display: flex;
            align-items: center;
            padding: 14px 16px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            border-bottom: 1px solid #21262d;
        }
        .menu-item:last-child { border-bottom: none; }
        .menu-item:active { background: rgba(255,255,255,0.03); }
        .menu-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            margin-right: 12px;
            flex-shrink: 0;
        }
        .menu-text {
            flex: 1;
            font-size: 14px;
            color: #f0f6fc;
        }
        .menu-extra {
            font-size: 13px;
            color: #8b949e;
            margin-right: 4px;
        }
        .menu-arrow {
            font-size: 16px;
            color: #484f58;
        }

        /* ========== 子页面 ========== */
        .sub-page {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: #0d1117;
            z-index: 2000;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .sub-page.show { display: block; }
        .sub-header {
            position: sticky;
            top: 0;
            display: flex;
            align-items: center;
            padding: 12px 16px;
            background: #161b22;
            border-bottom: 1px solid #30363d;
            z-index: 10;
        }
        .sub-back {
            font-size: 20px;
            color: #58a6ff;
            cursor: pointer;
            margin-right: 12px;
            padding: 4px;
        }
        .sub-title {
            font-size: 16px;
            font-weight: 600;
            color: #f0f6fc;
        }
        .sub-body { padding: 16px; }

        /* ========== 卡片通用 ========== */
        .card {
            background: #161b22;
            border: 1px solid #21262d;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
        }
        .card-title {
            font-size: 14px;
            font-weight: 600;
            color: #f0f6fc;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* ========== 统计卡片 ========== */
        .stat-row {
            display: flex;
            gap: 10px;
            margin-bottom: 12px;
        }
        .stat-card {
            flex: 1;
            padding: 14px;
            background: #1c2128;
            border: 1px solid #30363d;
            border-radius: 10px;
            text-align: center;
        }
        .stat-card-value {
            font-size: 20px;
            font-weight: 700;
            color: #3fb950;
        }
        .stat-card-label {
            font-size: 12px;
            color: #8b949e;
            margin-top: 4px;
        }

        /* ========== 邀请码 ========== */
        .code-box {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        .code-display {
            flex: 1;
            padding: 12px;
            background: #0d1117;
            border: 1px solid #30363d;
            border-radius: 8px;
            text-align: center;
            font-size: 18px;
            font-weight: 700;
            color: #58a6ff;
            font-family: "SF Mono", Monaco, monospace;
            letter-spacing: 2px;
        }
        .copy-btn {
            padding: 10px 18px;
            background: #30363d;
            color: #c9d1d9;
            font-size: 13px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .copy-btn:active { background: #484f58; }
        .link-box {
            padding: 12px;
            background: #0d1117;
            border: 1px solid #30363d;
            border-radius: 8px;
            font-size: 13px;
            color: #8b949e;
            word-break: break-all;
            margin-bottom: 10px;
        }
        .copy-link-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #f0883e, #d4762a);
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }
        .copy-link-btn:active { opacity: 0.8; }
        .promo-tip {
            margin-top: 12px;
            padding: 12px;
            background: rgba(240,136,62,0.08);
            border: 1px solid rgba(240,136,62,0.2);
            border-radius: 8px;
            font-size: 13px;
            color: #c9d1d9;
            line-height: 1.6;
        }
        .promo-tip strong { color: #f0883e; }

        /* ========== 提现区域 ========== */
        .withdraw-addr {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px;
            background: #0d1117;
            border: 1px solid #30363d;
            border-radius: 8px;
            margin-bottom: 12px;
        }
        .withdraw-addr-text {
            font-size: 13px;
            color: #58a6ff;
            font-family: monospace;
            word-break: break-all;
            flex: 1;
            margin-right: 10px;
        }
        .withdraw-addr-btn {
            padding: 6px 12px;
            background: #30363d;
            color: #c9d1d9;
            font-size: 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .form-group {
            margin-bottom: 14px;
        }
        .form-label {
            display: block;
            font-size: 13px;
            color: #8b949e;
            margin-bottom: 6px;
        }
        .form-input {
            width: 100%;
            padding: 12px 14px;
            background: #0d1117;
            border: 1px solid #30363d;
            border-radius: 8px;
            color: #f0f6fc;
            font-size: 14px;
            outline: none;
        }
        .form-input:focus { border-color: #58a6ff; }
        .form-input::placeholder { color: #484f58; }
        .form-hint {
            font-size: 12px;
            color: #8b949e;
            margin-top: 4px;
        }
        .submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #238636, #1a7f2e);
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 4px;
        }
        .submit-btn:active { opacity: 0.8; }
        .submit-btn:disabled {
            background: #30363d;
            color: #484f58;
            cursor: not-allowed;
        }

        /* ========== 记录列表 ========== */
        .record-list { margin-top: 12px; }
        .record-header {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            padding: 10px 0;
            border-bottom: 1px solid #30363d;
            font-size: 12px;
            color: #8b949e;
        }
        .record-item {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            padding: 12px 0;
            border-bottom: 1px solid #21262d;
            font-size: 13px;
            align-items: center;
        }
        .record-item:last-child { border-bottom: none; }
        .record-amount { color: #3fb950; font-weight: 600; }
        .record-status {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 12px;
        }
        .record-status.pass { color: #3fb950; background: rgba(63,185,80,0.15); }
        .record-status.pending { color: #f0883e; background: rgba(240,136,62,0.15); }
        .record-status.reject { color: #ff7b72; background: rgba(255,123,114,0.15); }
        .record-time { color: #8b949e; font-size: 12px; }
        .record-empty {
            text-align: center;
            padding: 30px;
            color: #484f58;
            font-size: 13px;
        }

        /* ========== 安全设置子Tab ========== */
        .safe-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }
        .safe-tab {
            padding: 8px 16px;
            font-size: 13px;
            color: #8b949e;
            background: #1c2128;
            border: 1px solid #30363d;
            border-radius: 6px;
            cursor: pointer;
        }
        .safe-tab.active {
            color: #58a6ff;
            border-color: #58a6ff;
            background: rgba(88,166,255,0.1);
        }
        .safe-form { display: none; }
        .safe-form.active { display: block; }
        .code-input-group {
            display: flex;
            gap: 10px;
        }
        .code-input-group .form-input { flex: 1; }
        .send-code-btn {
            padding: 0 16px;
            background: #1f6feb;
            color: #fff;
            font-size: 13px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .send-code-btn:disabled {
            background: #30363d;
            color: #484f58;
        }
        .send-code-btn:active:not(:disabled) { opacity: 0.8; }

        /* ========== 弹窗 ========== */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 5000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal-overlay.show { display: flex; }
        .modal-box {
            width: 100%;
            max-width: 340px;
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 12px;
            padding: 20px;
        }
        .modal-title {
            font-size: 16px;
            font-weight: 600;
            color: #f0f6fc;
            margin-bottom: 16px;
        }
        .modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 16px;
        }
        .modal-btn {
            flex: 1;
            padding: 12px;
            font-size: 14px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }
        .modal-btn.cancel {
            background: #21262d;
            color: #c9d1d9;
        }
        .modal-btn.confirm {
            background: #238636;
            color: #fff;
        }

        /* ========== 退出登录 ========== */
        .logout-btn {
            margin: 20px 16px 30px;
            padding: 14px;
            background: rgba(255,123,114,0.1);
            color: #ff7b72;
            font-size: 15px;
            font-weight: 500;
            text-align: center;
            border: 1px solid rgba(255,123,114,0.2);
            border-radius: 10px;
            cursor: pointer;
        }
        .logout-btn:active { background: rgba(255,123,114,0.2); }
    