<view class="container">
  <view class="card">
    <view class="section-title">偏好设置</view>

    <view class="setting-item">
      <text class="setting-label">周起始日</text>
      <view class="flex gap-2">
        <view class="btn-outline {{weekStartDay === 0 ? 'active' : ''}}" bindtap="setWeekStart" data-v="0">周日</view>
        <view class="btn-outline {{weekStartDay === 1 ? 'active' : ''}}" bindtap="setWeekStart" data-v="1">周一</view>
      </view>
    </view>

    <view class="setting-item">
      <text class="setting-label">子时流派</text>
      <view class="flex gap-2">
        <view class="btn-outline {{ziHourSect === 'lateZiNextDay' ? 'active' : ''}}" bindtap="setZiSect" data-v="lateZiNextDay">晚子时算次日</view>
        <view class="btn-outline {{ziHourSect === 'lateZiSameDay' ? 'active' : ''}}" bindtap="setZiSect" data-v="lateZiSameDay">晚子时算当日</view>
      </view>
    </view>

    <view class="setting-item">
      <text class="setting-label">真太阳时校正</text>
      <switch checked="{{solarTime}}" bindchange="onSolarTimeChange" color="#C41E3A"/>
    </view>

    <view class="setting-item">
      <text class="setting-label">显示佛历提醒</text>
      <switch checked="{{showBuddhist}}" bindchange="onBuddhistChange" color="#C41E3A"/>
    </view>

    <view class="setting-item">
      <text class="setting-label">初一十五高亮</text>
      <switch checked="{{highlightLunar}}" bindchange="onHighlightLunarChange" color="#C41E3A"/>
    </view>
  </view>

  <view class="text-xs text-muted text-center mt-2">设置仅保存在本机，修改后立即生效</view>
</view>
