.page-parcel-forecast-form { min-height: 100vh; background:#f3f3f3; padding-bottom:90px; }

.pff-header { position:fixed; top:0; left:0; right:0; z-index:20; height:40px; display:flex; align-items:center; justify-content:space-between; background:#1787e7; color:#fff; padding:0 10px; box-sizing:border-box; }
.pff-header-back { width:40px; text-align:left; font-size:20px; cursor:pointer; }
.pff-header-title { flex:1; text-align:center; font-size:15px; font-weight:700; }
.pff-header-placeholder { width:40px; }

.pff-total { position:fixed; top:40px; left:0; right:0; z-index:10; background:#fff; box-shadow:0 14px 20px rgba(0,0,0,0.25); display:flex; align-items:center; justify-content:space-between; padding:0 15px; box-sizing:border-box; font-size:12px; height:30px; }
.pff-total-count { color:#1787e7; }
.pff-total-right { font-size:12px; background:#1787e7; border-radius:4px; color:#fff; padding:2px 10px; cursor:pointer; }

.pff-body { padding-top:70px; padding-bottom:10px; }
.pff-list { width:94%; max-width:700px; margin:0 auto; }

.pff-item { background:#fff; border-radius:20px; padding:12px 14px; margin-bottom:10px; box-sizing:border-box; border-bottom:2px solid #887e7e; }
.pff-item-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; font-size:14px; }
.pff-item-header-title { font-size:14px; }
.pff-item-subheader { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.pff-item-subheader-left { display:flex; align-items:center; }
.pff-item-tag { background:#f1ac4f; color:#fff; padding:2px 16px; border-radius:4px; font-size:13px; display:inline-block; }
.pff-item-error-text { margin-left:10px; color:red; font-size:12px; }
.pff-item-delete-icon { width:20px; height:20px; cursor:pointer; }

.pff-field { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #e0e0e0; padding:6px 0; font-size:13px; }
.pff-field-label { flex-shrink:0; margin-right:8px; white-space:nowrap; }
.pff-field-label span.req { color:#f00; margin-right:2px; }
.pff-field-input { flex:1; }
.pff-field-input input { width:100%; border:none; outline:none; font-size:13px; padding:4px 0; background:transparent; }
.pff-field-input input.pff-input-error { border-bottom:1px solid #ff4d4f; }
.pff-field-input input[type="number"] { -moz-appearance:textfield; }
.pff-field-input input::-webkit-outer-spin-button,
.pff-field-input input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

.page-smallpkg-forecast .pff-field-input input[type="checkbox"] { width:auto; display:inline-block; padding:0; }

.page-smallpkg-forecast .pff-img-del { border:1px solid #e5e7eb; background:#fff; color:#6b7280; border-radius:10px; height:26px; padding:0 10px; font-size:12px; line-height:26px; cursor:pointer; }
.page-smallpkg-forecast .pff-img-del:active { opacity:0.7; }

/* 数量加减区域：自定义一个类似 u-number-box 的简易样式 */
.pff-number-box { display:flex; align-items:center; border:1px solid #ddd; border-radius:4px; overflow:hidden; max-width:160px; }
.pff-number-btn { width:32px; height:28px; display:flex; align-items:center; justify-content:center; cursor:pointer; background:#f7f7f7; font-size:16px; }
.pff-number-input { width:60px; text-align:center; border:none; outline:none; font-size:13px; }

/* 指定服务 + 开关 */
.pff-service { font-size:13px; margin:10px 0; }
.pff-service-title { font-weight:700; margin-bottom:8px; }
.pff-service-row { display:flex; justify-content:space-between; align-items:center; }
.pff-service-desc { font-size:12px; color:#8c8787bd; margin-top:2px; }

.pff-switch { position:relative; display:inline-block; width:42px; height:22px; }
.pff-switch input { opacity:0; width:0; height:0; }
.pff-switch-slider { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background:#ccc; border-radius:11px; transition:0.2s; }
.pff-switch-slider:before { position:absolute; content:""; height:18px; width:18px; left:2px; top:2px; background:#fff; border-radius:50%; transition:0.2s; }
.pff-switch input:checked + .pff-switch-slider { background:#1787e7; }
.pff-switch input:checked + .pff-switch-slider:before { transform:translateX(20px); }

.pff-textarea-label { font-size:12px; margin:10px 0 4px; }
.pff-textarea { width:100%; min-height:80px; border:1px solid #ddd; border-radius:6px; padding:6px; font-size:13px; box-sizing:border-box; resize:vertical; }

.pff-fixed { position:fixed; left:0; right:0; bottom:0; background:#fff; box-shadow:0 0 7.5px rgba(0,0,0,0.5); padding:8px 10px 10px; box-sizing:border-box; z-index:15; }
.pff-agree { font-size:12px; display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
.pff-agree input[type="checkbox"] {
  width:14px;
  height:14px;
  border-radius:3px;
  border:1px solid #1787e7;
  margin-right:6px;
  background:#fff;
  appearance:none;
  -webkit-appearance:none;
  outline:none;
  box-sizing:border-box;
  position:relative;
}
.pff-agree input[type="checkbox"]:checked {
  background:#1787e7;
  border-color:#1787e7;
}
.pff-agree input[type="checkbox"]:checked::after {
  content:"";
  position:absolute;
  left:3px;
  top:1px;
  width:4px;
  height:7px;
  border:2px solid #fff;
  border-top:none;
  border-left:none;
  transform:rotate(45deg);
}
.pff-agree a { color:#1787e7; text-decoration:none; }

.pff-btn-row { display:flex; justify-content:center; }
.pff-btn { display:flex; align-items:center; justify-content:center; flex:1; max-width:210px; margin:0 4px; border-radius:30px; font-size:12px; height:32px; border:2px solid transparent; cursor:pointer; }
.pff-btn-outline { border-color:#1787e7; background:#fff; color:#1787e7; }
.pff-btn-primary { border-color:#1787e7; background:#1787e7; color:#fff; }
.pff-btn-success { border-color:#56b887; background:#56b887; color:#fff; }

.pff-mask { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:none; align-items:center; justify-content:center; z-index:20; }
.pff-mask.show { display:flex; }
.pff-batch-box { position:relative; width:90%; max-width:360px; background:#fff; border-radius:12px; padding:14px; box-sizing:border-box; font-size:13px; }
.pff-batch-title { text-align:center; font-size:15px; font-weight:700; margin-bottom:6px; }
.pff-batch-tip { font-size:12px; margin-bottom:6px; }
.pff-batch-textarea { width:100%; height:500px; max-height:calc(100vh - 150px); box-sizing:border-box; border:1px solid #ddd; border-radius:6px; padding:6px; font-size:13px; }
.pff-batch-textarea.pff-batch-textarea-error { border-color:#ff4d4f; }
.pff-batch-error { margin-top:4px; min-height:18px; font-size:12px; color:#ff4d4f; }
.pff-batch-actions { margin-top:10px; text-align:center; }
.pff-batch-confirm { border-radius:18px; padding:6px 18px; border:none; background:#1787e7; color:#fff; font-size:13px; cursor:pointer; }
.pff-batch-close { position:absolute; top:0; right:0; width:28px; height:28px; border-radius:50%; border:none; background:#cd5a55; color:#fff; font-size:18px; transform:translate(40%,-40%); cursor:pointer; }

.pff-loading-mask { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:none; align-items:center; justify-content:center; z-index:30; }
.pff-loading-box { background:#000; color:#fff; padding:10px 18px; border-radius:8px; font-size:13px; }

.pff-terms-mask { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:none; align-items:center; justify-content:center; z-index:25; }
.pff-terms-mask.show { display:flex; }
.pff-terms-box { width:90%; max-width:480px; max-height:80vh; background:#fff; border-radius:12px; box-sizing:border-box; display:flex; flex-direction:column; }
.pff-terms-header { padding:12px 16px; border-bottom:1px solid #eee; display:flex; justify-content:space-between; align-items:center; }
.pff-terms-title { font-size:14px; font-weight:700; }
.pff-terms-close { border:none; background:#cd5a55; color:#fff; width:24px; height:24px; border-radius:50%; font-size:16px; cursor:pointer; }
.pff-terms-body { padding:12px 16px; overflow-y:auto; font-size:13px; line-height:1.6; }

@media (min-width:768px) {
  .page-parcel-forecast-form { max-width:480px; margin:0 auto; border:1px solid #eee; }
}
