<!-- pages/leader/leader.wxml - 重设计，更饱满科技感 -->

<!-- 未注册状态（保持原样） -->
<view class="page-container unregistered-page" wx:if="{{!isZuzhang}}">
  <view class="glitch-title">⚡ 组长认证 ⚡</view>
  <view class="input-area">
    <input 
      class="glitch-input" 
      type="text" 
      placeholder="输入邀请码激活权限" 
      maxlength="100"
      value="{{inviteCode}}"
      bindinput="onInviteCodeInput"
      placeholder-class="placeholder"
    />
  </view>
  <view class="glitch-button" bindtap="onRegister">
    <text class="button-text">立即激活</text>
    <view class="button-glow"></view>
  </view>
</view>

<!-- 已注册状态 - 赛博驾驶舱（重设计） -->
<view class="page-container registered-page" wx:else>
  <!-- 背景网格 + 扫描线 -->
  <view class="cyber-grid"></view>
  <view class="scan-line"></view>
  
  <!-- 刷新按钮（能量核心）保持不变 -->
  <view class="refresh-core" bindtap="refreshZuzhangInfo">
    <view class="core-spinner"></view>
  </view>
  
  <!-- 头部用户信息（增强光效） -->
  <view class="cyber-header">
    <view class="avatar-container">
      <image class="avatar" src="{{avatarUrl}}" mode="aspectFill"></image>
      <view class="avatar-ring"></view>
      <view class="avatar-glow"></view>
    </view>
    <view class="user-info">
      <text class="nickname">{{nicheng || '组长'}}</text>
      <view class="uid-tag">
        <text>UID: {{uid || '--'}}</text>
      </view>
    </view>
  </view>
  
  <!-- 资产总览卡片（突出可提现余额） -->
  <view class="asset-card">
    <view class="card-glow"></view>
    <view class="asset-title">💰 可提现余额</view>
    <view class="asset-value">
      <text class="value-number">{{ketixian}}</text>
      <text class="value-unit">元</text>
    </view>
    <!-- 装饰性光条 -->
    <view class="asset-beam"></view>
  </view>
  
  <!-- 双数据卡片（邀请管事数 + 分红总额） -->
  <view class="stats-row">
    <view class="stat-card">
      <view class="stat-icon">👥</view>
      <view class="stat-content">
        <text class="stat-label">邀请管事</text>
        <text class="stat-number">{{guanshiCount}}</text>
      </view>
      <view class="stat-glow"></view>
    </view>
    <view class="stat-card">
      <view class="stat-icon">📊</view>
      <view class="stat-content">
        <text class="stat-label">分红总额</text>
        <text class="stat-number">{{fenhongZonge}}</text>
      </view>
      <view class="stat-glow"></view>
    </view>
  </view>
  
  <!-- 立即提现按钮（无图标，大尺寸） -->
  <view class="withdraw-btn-wrapper">
    <view class="withdraw-btn" bindtap="goToWithdraw">
      <text class="btn-text">⚡ 立即提现 ⚡</text>
      <view class="btn-glow"></view>
    </view>
  </view>
  
  <!-- 底部功能按钮（调整样式） -->
  <view class="function-panel">
    <view class="function-btn" bindtap="goToFenhongJilu">
      <text class="btn-icon">📈</text>
      <text class="btn-label">分红记录</text>
    </view>
    <view class="function-btn" bindtap="goToYaoqingGuanshi">
      <text class="btn-icon">👥</text>
      <text class="btn-label">邀请管事</text>
    </view>
  </view>
  
  <global-notification id="global-notification" />
  <tab-bar />
</view>

<!-- 加载遮罩（保持不变） -->
<view class="loading-mask" wx:if="{{isLoading}}">
  <view class="loader"></view>
</view>