<view class="container">
  <view class="hero fade-up">
    <view class="hero-badge">INBOX</view>
    <view class="hero-title">用户私信收件箱</view>
    <view class="hero-sub">仅展示通过检测后成功送达的私信内容。</view>
  </view>

  <view class="card fade-up fade-up-delay-1" wx:if="{{list.length}}">
    <view class="card-title">私信列表</view>
    <view class="list-item" wx:for="{{list}}" wx:key="id">
      <view class="item-title">{{item.text}}</view>
      <view class="item-sub">发送人：{{item.nickname || item.username}}（{{item.username}}）</view>
      <view class="row">
        <text class="label">发送时间</text>
        <text class="value">{{item.created_text}}</text>
      </view>
    </view>
  </view>

  <view class="card fade-up fade-up-delay-1" wx:if="{{!list.length}}">
    <view class="empty">暂无私信内容。</view>
  </view>
</view>
