<view class="green-box">
  <text class="title-en">降酸模型</text>
</view>

<view class="container">
  <view class="row">
    <!-- 条数阈值 -->
    <view class="input-group">
      <text class="label">条数阈值：</text>
      <picker mode="selector" range="{{countOptions}}" value="{{selectedCountIndex}}" bindchange="onCountPickerChange">
        <text class="picker-text">{{countOptions[selectedCountIndex]}} 条</text>
      </picker>
      <input type="number" value="{{countThresh}}" bindinput="updateCountThreshold" class="input" />
    </view>

    <!-- 百分比阈值 -->
    <view class="input-group">
      <text class="label">百分比阈值：</text>
      <picker mode="selector" range="{{percentageOptions}}" value="{{selectedPercentageIndex}}" bindchange="onPercentagePickerChange">
        <text class="picker-text">{{percentageOptions[selectedPercentageIndex]}}%</text>
      </picker>
      <input type="number" value="{{percentageThresh}}" bindinput="updatePercentageThreshold" class="input" />
    </view>
  </view>
  <button class="save-btn" bindtap="saveSettings">保存</button>
</view>

<view class="green-box">
  <text class="title-en">反酸模型</text>
</view>

<view class="container">
  <view class="row">
    <!-- 条数阈值 -->
    <view class="input-group">
      <text class="label">条数阈值：</text>
      <picker mode="selector" range="{{countOptions}}" value="{{selectedCountIndex}}" bindchange="onCountPickerChange">
        <text class="picker-text">{{countOptions[selectedCountIndex]}} 条</text>
      </picker>
      <input type="number" value="{{countThresh}}" bindinput="updateCountThreshold" class="input" />
    </view>

    <!-- 百分比阈值 -->
    <view class="input-group">
      <text class="label">百分比阈值：</text>
      <picker mode="selector" range="{{percentageOptions}}" value="{{selectedPercentageIndex}}" bindchange="onPercentagePickerChange">
        <text class="picker-text">{{percentageOptions[selectedPercentageIndex]}}%</text>
      </picker>
      <input type="number" value="{{percentageThresh}}" bindinput="updatePercentageThreshold" class="input" />
    </view>
  </view>
  <button class="save-btn" bindtap="saveSettings">保存</button>
</view>
