<view class="pay-success">
  <image src="/images/success.png" class="succ-icon"/>
  <view class="succ-tip">支付成功！</view>
  
  <!-- 支付信息 -->
  <view class="payment-info">
    <view class="info-item">
      <text class="info-label">支付金额</text>
      <text class="info-value">¥{{totalPrice}}</text>
    </view>
    <view class="info-item">
      <text class="info-label">购票数量</text>
      <text class="info-value">{{passengerCount}}张</text>
    </view>
  </view>

  <!-- 会员升级通知 -->
  <view wx:if="{{levelUpgraded}}" class="upgrade-notice">
    <view class="upgrade-icon">🎉</view>
    <view class="upgrade-text">恭喜升级为{{newLevelInfo.name}}！</view>
    <view class="upgrade-benefit">享受{{(1-newLevelInfo.discount)*100}}折购票优惠</view>
  </view>

  <!-- 积分奖励 -->
  <view class="rewards-section">
    <view class="rewards-title">本次获得奖励</view>
    <view class="rewards-grid">
      <view class="reward-item">
        <view class="reward-icon">💰</view>
        <view class="reward-amount">+{{addedPoints}}</view>
        <view class="reward-label">积分</view>
      </view>
      <view class="reward-item">
        <view class="reward-icon">💎</view>
        <view class="reward-amount">+{{addedValue}}</view>
        <view class="reward-label">会员值</view>
      </view>
    </view>
    <view class="rewards-note">消费1元得1积分+1会员值，积分可兑换优惠券</view>
  </view>

  <!-- 操作按钮 -->
  <!-- 司机分配状态 -->
  <view class="driver-assignment-section">
    <view wx:if="{{assigningDriver}}" class="assigning-driver">
      <view class="assigning-icon">🚗</view>
      <view class="assigning-text">正在为您分配司机...</view>
      <view class="assigning-desc">预计需要1-2分钟</view>
    </view>
    
    <view wx:elif="{{driverAssigned && driverInfo}}" class="driver-assigned">
      <view class="assigned-header">
        <view class="assigned-icon">✅</view>
        <view class="assigned-text">司机分配成功</view>
      </view>
      <view class="driver-info-card">
        <view class="driver-basic">
          <view class="driver-name">{{driverInfo.driverName}}</view>
          <view class="driver-rating">⭐ {{driverInfo.rating}}</view>
        </view>
        <view class="driver-details">
          <view class="detail-item">
            <text class="detail-label">车牌号：</text>
            <text class="detail-value">{{driverInfo.carNumber}}</text>
          </view>
          <view class="detail-item">
            <text class="detail-label">车型：</text>
            <text class="detail-value">{{driverInfo.carModel}}</text>
          </view>
          <view class="detail-item">
            <text class="detail-label">预计到达：</text>
            <text class="detail-value">{{driverInfo.estimatedArrival.display}}</text>
          </view>
        </view>
      </view>
    </view>
  </view>

  <view class="action-buttons">
    <button class="action-btn secondary" bindtap="gotoPointsMall">积分商城</button>
    <button class="action-btn primary" bindtap="gotoOrder">查看订单</button>
  </view>
</view>