/* ==========================================================================
   forms.css — style-v32-flash-deal-info 补充样式
   仅包含 style.css 未覆盖的类:返回条 / 表单 / 结算步骤 / 费用明细 / 订单卡 / 弹层
   ========================================================================== */

/* ---------- SPA 弹层(默认隐藏,.show 时显示) ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 200;
  display: none;
  align-items: flex-end;
  -webkit-overflow-scrolling: touch;
}
.modal-mask.show { display: flex; animation: fadeIn .25s ease; }
.modal-sheet {
  background: #fff;
  width: 100%;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  animation: slideUp .3s ease;
  position: relative;
  padding-bottom: 24px;
}
.cart-sheet { padding-bottom: 16px; }
.detail-sheet { padding-bottom: 80px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (min-width: 641px) {
  .modal-mask { align-items: center; }
  .modal-sheet { max-width: 375px; border-radius: 20px; max-height: 85vh; }
}

/* ---------- 二级页返回条 ---------- */
.back-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform var(--tx-fast);
}
.back-link:active { transform: scale(.94); }
.crumb { font-size: 13px; font-weight: 700; color: var(--text); }

/* ---------- 通用表单 ---------- */
.form-field { margin-bottom: 14px; }
.form-field:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.req { color: var(--warn); font-weight: 700; }
.form-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast);
  resize: vertical;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, .10);
}
.form-hint { font-size: 11px; color: var(--text-light); margin-top: 4px; line-height: 1.5; }
.form-submit {
  width: 100%;
  margin-top: 6px;
  border: none;
  padding: 13px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FF9800, #FF5722);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 87, 34, .32);
  transition: transform var(--tx-fast);
}
.form-submit:active { transform: scale(.98); }

/* ---------- 有序 / 无序说明列表 ---------- */
.doc-ol { counter-reset: doc; }
.doc-ol > li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 8px;
}
.doc-ol > li::before {
  counter-increment: doc;
  content: counter(doc);
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-ul > li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text);
}
.doc-ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}
.doc-table th, .doc-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  line-height: 1.6;
}
.doc-table th { background: var(--bg-soft); font-weight: 700; color: var(--text); }
.doc-link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.doc-link-row a {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--primary-deep);
  font-weight: 600;
}

/* ---------- 保障 2x2 ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.promise-cell {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.promise-cell i { font-style: normal; font-size: 20px; display: block; margin-bottom: 4px; }
.promise-cell b { font-size: 13px; display: block; color: var(--text); }
.promise-cell span { font-size: 11px; color: var(--text-light); line-height: 1.5; display: block; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-item b { font-size: 13px; color: var(--text); display: block; margin-bottom: 4px; }
.faq-item p { font-size: 12.5px; color: var(--text-light); line-height: 1.75; }

/* ---------- 结算步骤条 ---------- */
.ck-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  font-size: 11px;
}
.ck-step { color: var(--text-muted); white-space: nowrap; }
.ck-step.done { color: var(--primary-light); }
.ck-step.active { color: var(--primary); font-weight: 700; }
.ck-line { flex: 1; height: 1px; background: var(--line); }

/* ---------- 结算商品行 ---------- */
.ck-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.ck-item:last-child { border-bottom: none; }
.ck-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-soft);
  flex-shrink: 0;
}
.ck-item-info { flex: 1; min-width: 0; }
.ck-item-name {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ck-item-spec { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.ck-item-price { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.ck-item-qty { font-size: 11px; color: var(--text-light); margin-left: 6px; font-weight: 400; }

/* ---------- 费用明细 ---------- */
.ck-summary { font-size: 13px; }
.ck-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  color: var(--text-light);
}
.ck-row b { color: var(--text); font-weight: 600; }
.ck-row.cut b { color: var(--warn); }
.ck-row.total {
  border-top: 1px dashed var(--line);
  margin-top: 6px;
  padding-top: 12px;
  color: var(--text);
  font-weight: 700;
}
.ck-row.total b { color: var(--primary); font-size: 20px; font-weight: 800; }

/* ---------- 协议同意 ---------- */
.ck-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}
.ck-consent input { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.ck-consent a { color: var(--primary); font-weight: 600; }

/* ---------- 底部固定提交条 ---------- */
.ck-bar {
  position: fixed;
  bottom: var(--tab-h);
  left: 0;
  right: 0;
  z-index: 95;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}
.ck-bar-total { font-size: 12px; color: var(--text-light); }
.ck-bar-total b { color: var(--primary); font-size: 20px; font-weight: 800; margin-left: 2px; }
.ck-bar-btn {
  flex: 1;
  max-width: 180px;
  margin-left: auto;
  border: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #FF9800, #FF5722);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 87, 34, .35);
  transition: transform var(--tx-fast);
}
.ck-bar-btn:active { transform: scale(.97); }
.page-checkout { padding-bottom: calc(var(--tab-h) + 76px); }

/* ---------- 提交成功 ---------- */
.success-box { text-align: center; padding: 8px 4px 4px; }
.success-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9800, #FF5722);
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(255, 87, 34, .35);
}
.success-title { font-size: 17px; font-weight: 700; color: var(--text); }
.success-no { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.success-info {
  text-align: left;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 12px;
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text);
}
.success-actions { display: flex; gap: 10px; }
.success-actions > * { flex: 1; text-align: center; }

/* ---------- 订单卡 ---------- */
.od-account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.od-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9800, #FF5722);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.od-account-info { flex: 1; min-width: 0; }
.od-account-info b { font-size: 15px; color: var(--text); display: block; }
.od-account-info span { font-size: 11px; color: var(--text-light); }
.od-logout {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-light);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.od-list { display: flex; flex-direction: column; gap: 12px; }
.od-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}
.od-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.od-no { font-size: 11px; color: var(--text-light); }
.od-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.od-goods { padding: 8px 0; }
.od-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-light);
}
.od-foot b { color: var(--primary); font-size: 16px; font-weight: 800; }
.od-actions { display: flex; gap: 8px; }
.od-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.od-btn.primary { border-color: var(--primary); color: var(--primary); font-weight: 700; }
