/* --- app/user/view/index.index.php --- */
body.user-center { background: #F8FAFB; margin: 0; }
        body.user-center .header { background: #fff; padding: 20px 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
        body.user-center .header .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
        body.user-center .header h1 { font-size: 20px; color: #333; margin: 0; }
        body.user-center .header a { color: #1e9fff; text-decoration: none; font-size: 14px; }
        body.user-center .container { max-width: 1100px; margin: 25px auto; padding: 0 20px; display: flex; gap: 20px; }
        body.user-center .sidebar { width: 200px; flex-shrink: 0; }
        body.user-center .sidebar-menu { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); overflow: hidden; }
        body.user-center .sidebar-menu .menu-title { padding: 15px 20px; font-size: 14px; color: #999; border-bottom: 1px solid #f0f0f0; }
        body.user-center .sidebar-menu a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: #333; text-decoration: none; font-size: 15px; transition: all .2s; border-left: 3px solid transparent; }
        body.user-center .sidebar-menu a:hover { background: #f8f8f8; color: #1e9fff; }
        body.user-center .sidebar-menu a.active { background: #e8f4ff; color: #1e9fff; border-left-color: #1e9fff; }
        body.user-center .sidebar-menu a i { font-size: 18px; }
        body.user-center .main { flex: 1; min-width: 0; }
        .user-card { background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 20px; }
        .user-info { display: flex; align-items: center; gap: 25px; }
        .user-avatar-wrap { position: relative; flex-shrink: 0; }
        .user-avatar { width: 80px; height: 80px; border-radius: 50%; background: #e8f4ff; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #1e9fff; overflow: hidden; }
        .user-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .user-avatar-btn { margin-top: 8px; display: block; width: 100%; }
        .user-detail h2 { margin: 0 0 8px; font-size: 22px; color: #333; display: flex; align-items: center; gap: 10px; }
        .user-detail h2 .edit-nick { font-size: 14px; color: #1e9fff; cursor: pointer; }
        .user-detail p { margin: 0; color: #999; font-size: 14px; }
        .user-balance { margin-top: 10px; font-size: 14px; color: #666; }
        .user-balance span { color: #ff9800; font-size: 20px; font-weight: 600; }
        .section-title { font-size: 16px; color: #333; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
        .form-card { background: #fff; border-radius: 8px; padding: 25px 30px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
        .layui-form-item { margin-bottom: 18px; }
        .layui-form-label { width: 80px; }
        .layui-input-block { margin-left: 110px; }
        .layui-input { height: 42px; border-radius: 4px; }
        .layui-btn { border-radius: 4px; }
        .action-btns { margin-top: 25px; padding-top: 20px; border-top: 1px solid #eee; }
        @media (max-width: 768px) {
            body.user-center .container { flex-direction: column; }
            .sidebar { width: 100%; }
            body.user-center .sidebar-menu { display: flex; flex-wrap: wrap; }
            body.user-center .sidebar-menu .menu-title { width: 100%; }
            body.user-center .sidebar-menu a { flex: 1; min-width: 120px; justify-content: center; border-left: none; border-bottom: 3px solid transparent; }
            body.user-center .sidebar-menu a.active { border-left-color: transparent; border-bottom-color: #1e9fff; }
        }

/* --- app/user/view/index.mysoft.php --- */
body.user-center { background: #F8FAFB; margin: 0; }
        body.user-center .header { background: #fff; padding: 20px 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
        body.user-center .header .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
        body.user-center .header h1 { font-size: 20px; color: #333; margin: 0; }
        body.user-center .header a { color: #1e9fff; text-decoration: none; font-size: 14px; }
        body.user-center .container { max-width: 1100px; margin: 25px auto; padding: 0 20px; display: flex; gap: 20px; }
        body.user-center .sidebar { width: 200px; flex-shrink: 0; }
        body.user-center .sidebar-menu { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); overflow: hidden; }
        body.user-center .sidebar-menu .menu-title { padding: 15px 20px; font-size: 14px; color: #999; border-bottom: 1px solid #f0f0f0; }
        body.user-center .sidebar-menu a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: #333; text-decoration: none; font-size: 15px; transition: all .2s; border-left: 3px solid transparent; }
        body.user-center .sidebar-menu a:hover { background: #f8f8f8; color: #1e9fff; }
        body.user-center .sidebar-menu a.active { background: #e8f4ff; color: #1e9fff; border-left-color: #1e9fff; }
        body.user-center .sidebar-menu a i { font-size: 18px; }
        body.user-center .main { flex: 1; min-width: 0; }
        .content-card { background: #fff; border-radius: 8px; padding: 25px 30px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
        .section-title { font-size: 16px; color: #333; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
        .soft-list { margin: 0; padding: 0; list-style: none; }
        .soft-item { padding: 18px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 18px; }
        .soft-item:last-child { border-bottom: none; }
        .soft-thumb { width: 60px; height: 60px; border-radius: 6px; background: #f5f5f5; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
        .soft-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .soft-thumb i { font-size: 28px; color: #ccc; }
        .soft-info { flex: 1; min-width: 0; }
        .soft-info h4 { margin: 0 0 6px; font-size: 15px; color: #333; }
        .soft-info h4 a { color: #333; text-decoration: none; }
        .soft-info h4 a:hover { color: #1e9fff; }
        .soft-info p { margin: 0; font-size: 13px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .soft-expire { text-align: right; white-space: nowrap; }
        .soft-expire .status { font-size: 12px; padding: 3px 10px; border-radius: 4px; display: inline-block; margin-bottom: 5px; }
        .soft-expire .status.valid { background: #e8f5e9; color: #4caf50; }
        .soft-expire .status.expired { background: #ffebee; color: #f44336; }
        .soft-expire .status.forever { background: #e3f2fd; color: #2196f3; }
        .soft-expire .time { font-size: 12px; color: #999; display: block; }
        .empty-tip { text-align: center; padding: 50px 20px; color: #999; }
        .empty-tip i { font-size: 48px; color: #ddd; display: block; margin-bottom: 15px; }
        .empty-tip a { color: #1e9fff; text-decoration: none; }
        .pagination { margin-top: 20px; text-align: center; }
        @media (max-width: 768px) {
            body.user-center .container { flex-direction: column; }
            .sidebar { width: 100%; }
            body.user-center .sidebar-menu { display: flex; flex-wrap: wrap; }
            body.user-center .sidebar-menu .menu-title { width: 100%; }
            body.user-center .sidebar-menu a { flex: 1; min-width: 120px; justify-content: center; border-left: none; border-bottom: 3px solid transparent; }
            body.user-center .sidebar-menu a.active { border-left-color: transparent; border-bottom-color: #1e9fff; }
            .soft-item { flex-wrap: wrap; }
            .soft-expire { width: 100%; text-align: left; margin-top: 10px; padding-left: 78px; }
        }

/* --- app/user/view/index.recharge.php --- */
body.user-center { background: #F8FAFB; margin: 0; }
        body.user-center .header { background: #fff; padding: 20px 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
        body.user-center .header .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
        body.user-center .header h1 { font-size: 20px; color: #333; margin: 0; }
        body.user-center .header a { color: #1e9fff; text-decoration: none; font-size: 14px; }
        body.user-center .container { max-width: 1100px; margin: 25px auto; padding: 0 20px; display: flex; gap: 20px; }
        body.user-center .sidebar { width: 200px; flex-shrink: 0; }
        body.user-center .sidebar-menu { background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.04); overflow: hidden; }
        body.user-center .sidebar-menu .menu-title { padding: 15px 20px; font-size: 14px; color: #999; border-bottom: 1px solid #f0f0f0; }
        body.user-center .sidebar-menu a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: #333; text-decoration: none; font-size: 15px; transition: all .2s; border-left: 3px solid transparent; }
        body.user-center .sidebar-menu a:hover { background: #f8f8f8; color: #1e9fff; }
        body.user-center .sidebar-menu a.active { background: #e8f4ff; color: #1e9fff; border-left-color: #1e9fff; }
        body.user-center .sidebar-menu a i { font-size: 18px; }
        body.user-center .main { flex: 1; min-width: 0; }
        .content-card { background: #fff; border-radius: 6px; padding: 25px 30px; box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 20px; }
        .section-title { font-size: 16px; color: #333; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; }
        .section-title .balance { font-size: 14px; color: #666; }
        .section-title .balance span { color: #ff9800; font-size: 18px; font-weight: 600; }
        
        .amount-presets { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
        .amount-btn { padding: 12px 24px; border: 2px solid #e0e0e0; border-radius: 6px; background: #fff; cursor: pointer; font-size: 16px; color: #333; transition: all .2s; min-width: 80px; text-align: center; }
        .amount-btn:hover { border-color: #1e9fff; color: #1e9fff; }
        .amount-btn.active { border-color: #1e9fff; background: #e8f4ff; color: #1e9fff; }
        
        .custom-amount { margin-bottom: 25px; }
        .custom-amount label { display: block; margin-bottom: 8px; color: #666; font-size: 14px; }
        .custom-amount .input-wrap { display: flex; align-items: center; gap: 10px; }
        .custom-amount input { flex: 1; height: 44px; border: 2px solid #e0e0e0; border-radius: 6px; padding: 0 15px; font-size: 16px; outline: none; transition: border-color .2s; }
        .custom-amount input:focus { border-color: #1e9fff; }
        .custom-amount .unit { color: #999; font-size: 14px; }
        
        .pay-methods { margin-bottom: 25px; }
        .pay-methods label { display: block; margin-bottom: 12px; color: #666; font-size: 14px; }
        .pay-method-list { display: flex; flex-wrap: wrap; gap: 12px; }
        .pay-method-item { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border: 2px solid #e0e0e0; border-radius: 6px; cursor: pointer; transition: all .2s; min-width: 140px; }
        .pay-method-item:hover { border-color: #1e9fff; }
        .pay-method-item.active { border-color: #1e9fff; background: #e8f4ff; }
        .pay-method-item input { display: none; }
        .pay-method-item .icon { font-size: 24px; }
        .pay-method-item .icon.alipay { color: #1677ff; }
        .pay-method-item .icon.usdt { color: #26a17b; }
        .pay-method-item .name { font-size: 15px; color: #333; }
        
        .chain-select { margin-bottom: 25px; display: none; }
        .chain-select.show { display: block; }
        .chain-select label { display: block; margin-bottom: 12px; color: #666; font-size: 14px; }
        .chain-list { display: flex; flex-wrap: wrap; gap: 12px; }
        .chain-item { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border: 2px solid #e0e0e0; border-radius: 6px; cursor: pointer; transition: all .2s; }
        .chain-item:hover { border-color: #26a17b; }
        .chain-item.active { border-color: #26a17b; background: #e8f5e9; }
        .chain-item input { display: none; }
        .chain-item .name { font-size: 14px; color: #333; }
        
        .submit-area { padding-top: 20px; border-top: 1px solid #eee; }
        .submit-btn { width: 100%; height: 48px; background: #1e9fff; color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; transition: background .2s; }
        .submit-btn:hover { background: #0c8ce9; }
        .submit-btn:disabled { background: #ccc; cursor: not-allowed; }
        
        .tips { margin-top: 15px; padding: 15px; background: #fff8e1; border-radius: 6px; }
        .tips h4 { margin: 0 0 10px; font-size: 14px; color: #f57c00; }
        .tips ul { margin: 0; padding-left: 18px; }
        .tips li { font-size: 13px; color: #666; line-height: 1.8; }
        
        
        @media (max-width: 768px) {
            body.user-center .container { flex-direction: column; }
            .sidebar { width: 100%; }
            body.user-center .sidebar-menu { display: flex; flex-wrap: wrap; }
            body.user-center .sidebar-menu .menu-title { width: 100%; }
            body.user-center .sidebar-menu a { flex: 1; min-width: 120px; justify-content: center; border-left: none; border-bottom: 3px solid transparent; }
            body.user-center .sidebar-menu a.active { border-left-color: transparent; border-bottom-color: #1e9fff; }
            .amount-btn { min-width: 70px; padding: 10px 16px; font-size: 14px; }
        }

/* --- app/user/view/index.resetpwd.php --- */
/* 仅重置密码独立页：勿写全局 body，否则与 user.css 同页的登录等会继承 display:flex 挤压顶栏 */
body.page-user-resetpwd {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
body.page-user-resetpwd .reset-box { background: #fff; border-radius: 8px; padding: 0; width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden; }
body.page-user-resetpwd .reset-header { background: #1e9fff; color: #fff; padding: 25px 30px; text-align: center; }
body.page-user-resetpwd .reset-header h2 { margin: 0; font-size: 20px; font-weight: 500; }
body.page-user-resetpwd .reset-body { padding: 30px; }
body.page-user-resetpwd .layui-form-item { margin-bottom: 18px; }
body.page-user-resetpwd .layui-input { height: 44px; border-radius: 4px; }
body.page-user-resetpwd .layui-btn { height: 46px; border-radius: 4px; font-size: 16px; }
body.page-user-resetpwd .reset-footer { text-align: center; padding: 15px 30px 25px; }
body.page-user-resetpwd .reset-footer a { color: #1e9fff; text-decoration: none; font-size: 14px; }
body.page-user-resetpwd .error-msg { text-align: center; padding: 40px 20px; }
body.page-user-resetpwd .error-msg i { font-size: 60px; color: #ff5722; }
body.page-user-resetpwd .error-msg p { color: #666; margin-top: 20px; font-size: 15px; }

/* --- app/user/view/index.trade.php --- */
body.user-center { background: #F8FAFB; margin: 0; }
        body.user-center .header { background: #fff; padding: 20px 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
        body.user-center .header .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
        body.user-center .header h1 { font-size: 20px; color: #333; margin: 0; }
        body.user-center .header a { color: #1e9fff; text-decoration: none; font-size: 14px; }
        body.user-center .container { max-width: 1100px; margin: 25px auto; padding: 0 20px; display: flex; gap: 20px; }
        body.user-center .sidebar { width: 200px; flex-shrink: 0; }
        body.user-center .sidebar-menu { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); overflow: hidden; }
        body.user-center .sidebar-menu .menu-title { padding: 15px 20px; font-size: 14px; color: #999; border-bottom: 1px solid #f0f0f0; }
        body.user-center .sidebar-menu a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: #333; text-decoration: none; font-size: 15px; transition: all .2s; border-left: 3px solid transparent; }
        body.user-center .sidebar-menu a:hover { background: #f8f8f8; color: #1e9fff; }
        body.user-center .sidebar-menu a.active { background: #e8f4ff; color: #1e9fff; border-left-color: #1e9fff; }
        body.user-center .sidebar-menu a i { font-size: 18px; }
        body.user-center .main { flex: 1; min-width: 0; }
        .content-card { background: #fff; border-radius: 8px; padding: 25px 30px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
        .section-title { font-size: 16px; color: #333; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; }
        .section-title .balance { font-size: 14px; color: #666; }
        .section-title .balance span { color: #ff9800; font-size: 18px; font-weight: 600; }
        .order-list { margin: 0; padding: 0; list-style: none; }
        .order-item { padding: 15px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 15px; }
        .order-item:last-child { border-bottom: none; }
        .order-info { flex: 1; min-width: 0; }
        .order-info h4 { margin: 0 0 5px; font-size: 15px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .order-info p { margin: 0; font-size: 13px; color: #999; }
        .order-amount { font-size: 16px; font-weight: 600; color: #333; white-space: nowrap; }
        .order-amount.income { color: #4caf50; }
        .order-amount.expense { color: #f44336; }
        .order-status { font-size: 12px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
        .order-status.pending { background: #fff3e0; color: #ff9800; }
        .order-status.paid { background: #e8f5e9; color: #4caf50; }
        .order-status.failed { background: #ffebee; color: #f44336; }
        .empty-tip { text-align: center; padding: 50px 20px; color: #999; }
        .empty-tip i { font-size: 48px; color: #ddd; display: block; margin-bottom: 15px; }
        .pagination { margin-top: 20px; text-align: center; }
        @media (max-width: 768px) {
            body.user-center .container { flex-direction: column; }
            .sidebar { width: 100%; }
            body.user-center .sidebar-menu { display: flex; flex-wrap: wrap; }
            body.user-center .sidebar-menu .menu-title { width: 100%; }
            body.user-center .sidebar-menu a { flex: 1; min-width: 120px; justify-content: center; border-left: none; border-bottom: 3px solid transparent; }
            body.user-center .sidebar-menu a.active { border-left-color: transparent; border-bottom-color: #1e9fff; }
        }
