<view class="container">
  <view class="card">
    <view class="section-title">我的收藏</view>
    <view class="bookmark-list" wx:if="{{bookmarks.length > 0}}">
      <view class="bookmark-item" wx:for="{{bookmarks}}" wx:key="date" bindtap="openDetail" data-date="{{item.date}}">
        <view class="flex justify-between items-center">
          <view>
            <text class="text-base font-medium">{{item.date}}</text>
            <text class="text-xs text-muted block">{{item.lunarDate}}</text>
          </view>
          <view class="btn-ghost text-unlucky" catchtap="removeBookmark" data-date="{{item.date}}">删除</view>
        </view>
      </view>
    </view>
    <view class="empty-tip" wx:else>
      <text class="text-sm text-muted">暂无收藏</text>
      <text class="text-xs text-muted block mt-1">在日期详情页点击「收藏」即可添加</text>
    </view>
  </view>
</view>
