* { 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;
        }
        .header {
            height: 48px;
            background: #161b22;
            border-bottom: 1px solid #30363d;
            display: flex;
            align-items: center;
            padding: 0 16px;
            gap: 12px;
        }
        .back-btn {
            color: #8b949e;
            cursor: pointer;
            font-size: 14px;
            text-decoration: none;
        }
        .back-btn:hover { color: #58a6ff; }
        .header-title {
            font-size: 16px;
            font-weight: 600;
        }
        .main-layout {
            display: flex;
            min-height: calc(100vh - 48px);
        }
        .sidebar-menu {
            width: 200px;
            background: #161b22;
            border-right: 1px solid #30363d;
            padding: 20px 0;
            flex-shrink: 0;
        }
        .menu-item {
            padding: 12px 20px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
            color: #8b949e;
            border-left: 3px solid transparent;
        }
        .menu-item:hover {
            background: #21262d;
            color: #c9d1d9;
        }
        .menu-item.active {
            background: #21262d;
            border-left-color: #58a6ff;
            color: #58a6ff;
        }
        .menu-item.logout {
            margin-top: 20px;
            color: #f85149;
        }
        .menu-item.logout:hover {
            background: #3d1f1f;
        }
        .content-area {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
        }
        .user-header {
            display: flex;
            align-items: center;
            gap: 20px;
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 20px;
        }
        .user-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #21262d;
            border: 2px solid #30363d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            flex-shrink: 0;
        }
        .user-info-right {
            flex: 1;
        }
        .user-name-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }
        .user-name {
            font-size: 20px;
            font-weight: 600;
        }
        .user-email {
            font-size: 14px;
            color: #8b949e;
        }
        .user-meta-row {
            display: flex;
            gap: 24px;
            margin-top: 12px;
        }
        .user-meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #8b949e;
        }
        .user-meta-item .value {
            color: #c9d1d9;
        }
        .change-name-link {
            color: #58a6ff;
            cursor: pointer;
            font-size: 13px;
        }
        .change-name-link:hover {
            text-decoration: underline;
        }
        .fund-stats {
            display: flex;
            gap: 16px;
            margin-bottom: 20px;
        }
        .fund-card {
            flex: 1;
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 12px;
            padding: 16px 20px;
        }
        .fund-label {
            font-size: 13px;
            color: #8b949e;
            margin-bottom: 6px;
        }
        .fund-value {
            font-size: 24px;
            font-weight: bold;
            color: #3fb950;
        }
        .fund-value.consume {
            color: #f0883e;
        }
        .invite-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 20px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .invite-bar:hover {
            border-color: #58a6ff;
            background: #1c2128;
        }
        .invite-bar-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .invite-bar-icon {
            font-size: 24px;
        }
        .invite-bar-text {
            font-size: 15px;
        }
        .invite-bar-count {
            font-size: 20px;
            font-weight: bold;
            color: #58a6ff;
        }
        .invite-bar-arrow {
            color: #8b949e;
            font-size: 18px;
        }
        .invited-section {
            display: none;
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }
        .invited-section.show {
            display: block;
        }
        .invited-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .invited-title {
            font-size: 16px;
            font-weight: 600;
        }
        .invited-close {
            color: #8b949e;
            cursor: pointer;
            font-size: 13px;
        }
        .invited-close:hover {
            color: #f85149;
        }
        .invited-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        .invited-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: #21262d;
            border-radius: 8px;
        }
        .invited-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #30363d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }
        .invited-info {
            flex: 1;
            min-width: 0;
        }
        .invited-name {
            font-size: 14px;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .invited-time {
            font-size: 11px;
            color: #8b949e;
            margin-top: 2px;
        }
        
        /* 推广卡片 */
        .promo-card {
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }
        .promo-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
            font-size: 16px;
            font-weight: 600;
            color: #58a6ff;
        }
        .promo-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }
        .promo-stat {
            text-align: center;
            padding: 12px;
            background: #21262d;
            border-radius: 8px;
        }
        .promo-stat-num {
            font-size: 20px;
            font-weight: bold;
            color: #3fb950;
        }
        .promo-stat-label {
            font-size: 12px;
            color: #8b949e;
            margin-top: 4px;
        }
        .promo-section {
            margin-bottom: 12px;
        }
        .promo-section-label {
            font-size: 13px;
            color: #8b949e;
            margin-bottom: 6px;
        }
        .promo-code-box {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .promo-code {
            flex: 1;
            max-width: 400px;
            padding: 10px 14px;
            background: #21262d;
            border: 1px solid #30363d;
            border-radius: 6px;
            font-size: 16px;
            font-weight: bold;
            color: #58a6ff;
            text-align: center;
            letter-spacing: 2px;
        }
        .promo-btn {
            padding: 10px 16px;
            background: #238636;
            border: none;
            border-radius: 6px;
            color: white;
            font-size: 13px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }
        .promo-btn:hover { background: #2ea043; }
        .promo-btn-gray {
            background: #6e7681;
        }
        .promo-btn-gray:hover { background: #8b949e; }
        .btn-yellow {
            background: #000000;
            color: #ffd700;
            border: 1px solid #ffd700;
            font-weight: bold;
        }
        .btn-yellow:hover {
            background: #1a1a00;
            color: #ffea70;
            border-color: #ffea70;
            box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
        }
        .promo-btn.copied {
            background: #238636 !important;
            color: #fff !important;
            border-color: #238636 !important;
        }
        .promo-link-box {
            padding: 10px 14px;
            background: #21262d;
            border: 1px solid #30363d;
            border-radius: 6px;
            font-size: 12px;
            color: #8b949e;
            word-break: break-all;
            margin-bottom: 8px;
        }
        .promo-tip {
            font-size: 12px;
            color: #8b949e;
            line-height: 1.6;
        }
        .promo-tip span { color: #f0883e; }
        .security-tabs {
            display: flex;
            gap: 0;
            margin-bottom: 24px;
            border-bottom: 1px solid #30363d;
        }
        .security-tab {
            padding: 12px 32px;
            cursor: pointer;
            font-size: 15px;
            color: #8b949e;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            background: none;
            border-top: none;
            border-left: none;
            border-right: none;
        }
        .security-tab:hover {
            color: #c9d1d9;
        }
        .security-tab.active {
            color: #58a6ff;
            border-bottom-color: #58a6ff;
        }
        .security-card {
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 20px;
            max-width: 500px;
        }
        .security-card h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 24px;
            color: #c9d1d9;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            font-size: 13px;
            color: #8b949e;
            margin-bottom: 8px;
        }
        .form-group input {
            width: 100%;
            padding: 10px 14px;
            background: #21262d;
            border: 1px solid #30363d;
            border-radius: 6px;
            color: #c9d1d9;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        .form-group input:focus {
            border-color: #58a6ff;
        }
        .form-group input:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .form-group .hint {
            font-size: 12px;
            color: #8b949e;
            margin-top: 6px;
        }
        .form-group .hint.error {
            color: #f85149;
        }
        .form-group .hint.success {
            color: #3fb950;
        }
        .code-input-group {
            display: flex;
            gap: 10px;
        }
        .code-input-group input {
            flex: 1;
        }
        .code-btn {
            padding: 10px 16px;
            background: #1f6feb;
            border: none;
            border-radius: 6px;
            color: white;
            font-size: 13px;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.2s;
        }
        .code-btn:hover { background: #388bfd; }
        .code-btn:disabled {
            background: #6e7681;
            cursor: not-allowed;
        }
        .submit-btn {
            padding: 10px 20px;
            background: #238636;
            border: none;
            border-radius: 6px;
            color: white;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .submit-btn:hover { background: #2ea043; }
        .submit-btn:disabled {
            background: #6e7681;
            cursor: not-allowed;
        }
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        .modal-overlay.show {
            display: flex;
        }
        .modal-box {
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 12px;
            padding: 24px;
            width: 90%;
            max-width: 400px;
        }
        .modal-box h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
        }
        .modal-box .modal-input {
            width: 100%;
            padding: 10px 14px;
            background: #21262d;
            border: 1px solid #30363d;
            border-radius: 6px;
            color: #c9d1d9;
            font-size: 14px;
            outline: none;
            margin-bottom: 16px;
        }
        .modal-box .modal-input:focus {
            border-color: #58a6ff;
        }
        .modal-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }
        .modal-btn {
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            cursor: pointer;
            border: none;
        }
        .modal-btn.cancel {
            background: #21262d;
            color: #8b949e;
            border: 1px solid #30363d;
        }
        .modal-btn.cancel:hover {
            background: #30363d;
        }
        .modal-btn.confirm {
            background: #238636;
            color: white;
        }
        .modal-btn.confirm:hover {
            background: #2ea043;
        }
        .not-login {
            text-align: center;
            padding: 60px 20px;
        }
        .not-login a {
            color: #58a6ff;
            text-decoration: none;
        }
        .not-login a:hover { text-decoration: underline; }

        /* ===== VIP 状态卡 ===== */
        .vip-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            padding: 16px 24px;
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 12px;
            min-width: 220px;
            flex-shrink: 0;
        }
        .vip-card-inner {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .vip-card-icon {
            font-size: 32px;
        }
        .vip-card-title {
            font-size: 15px;
            font-weight: 600;
            color: #8b949e;
        }
        .vip-card-expire {
            font-size: 12px;
            color: #8b949e;
            margin-top: 2px;
        }
        /* 有效 VIP：金色主题（与后台 VIP 颜色 #ffd700 一致） */
        .vip-card.active {
            border-color: #ffd700;
            background: linear-gradient(135deg, #241d08, #161b22);
        }
        .vip-card.active .vip-card-title {
            color: #ffd700;
        }
        .vip-card.active .vip-card-expire {
            color: #c9b458;
        }
        /* 已过期：红色提示 */
        .vip-card.expired {
            border-color: #f85149;
        }
        .vip-card.expired .vip-card-title {
            color: #f85149;
        }
        .vip-card-btn {
            padding: 8px 24px;
            background: #000000;
            color: #ffd700;
            border: 1px solid #ffd700;
            border-radius: 20px;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }
        .vip-card-btn:hover {
            background: #1a1a00;
            color: #ffea70;
            border-color: #ffea70;
            box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
        }
        .vip-card-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        /* 窄屏适配：VIP 卡换行显示在用户资料下方 */
        @media (max-width: 768px) {
            .user-header {
                flex-wrap: wrap;
            }
            .vip-card {
                width: 100%;
                min-width: 0;
            }
        }