/* 先提后点 · 申请 / 已提交 */
:root {
  --color-primary: #FF620A;
  --color-bg: #fafafa;
  --gradient-header: linear-gradient(135deg, #FF9A3D 0%, #FF6A14 55%, #FF8018 100%);
  --gradient-btn: linear-gradient(90deg, #FF8618 0%, #FF620A 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 37.5px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: #333; background: #e9edf2; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--color-bg); padding-bottom: 2.4rem; }

.nav {
  position: sticky; top: 0; z-index: 100;
  height: 50px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-header); color: #fff;
}
.nav__back {
  position: absolute; left: 12px; top: 0; bottom: 0;
  display: flex; align-items: center; color: #fff; background: none; border: 0; padding: 0 8px; cursor: pointer;
}
.nav__title { font-size: 17px; font-weight: 600; }

.box {
  background: #fff; border-radius: 0.16rem;
  margin: 0.26667rem 0.4rem; padding: 0.4rem;
}
.product-name { font-size: 16px; font-weight: 600; color: #333; }
.meta-line { margin-top: 0.16rem; font-size: 13px; color: #666; line-height: 1.5; }
.meta-line strong { color: #333; font-weight: 600; }
.ton-summary {
  margin-top: 0.32rem; display: flex; gap: 0.16rem;
}
.ton-summary span {
  flex: 1; text-align: center; padding: 0.21333rem 0;
  background: #fafafa; border-radius: 0.10667rem; font-size: 12px; color: #666;
}
.ton-summary b { display: block; margin-top: 2px; font-size: 15px; color: #333; }

.field { margin-bottom: 0.4rem; }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.16rem; font-size: 14px; color: #333; font-weight: 500;
}
.field__link { color: #FF620A; font-size: 13px; font-weight: 400; background: none; border: 0; cursor: pointer; }
.field__input {
  display: flex; align-items: center;
  height: 1.17333rem; padding: 0 0.32rem;
  border: 1px solid #e8e8e8; border-radius: 0.10667rem; background: #fff;
}
.field__input input, .field__input select {
  flex: 1; border: 0; outline: 0; font-size: 16px; color: #333; background: transparent;
  min-width: 0; height: 100%;
}
.field__unit { color: #666; margin-left: 8px; font-size: 14px; }
.field__tip { margin-top: 0.12rem; font-size: 12px; color: #999; line-height: 1.4; }
.field__error { margin-top: 0.12rem; font-size: 12px; color: #ef4949; display: none; }
.field.is-error .field__input { border-color: #ef4949; }
.field.is-error .field__error { display: block; }

.preview-title { font-size: 15px; font-weight: 600; margin-bottom: 0.26667rem; }
.preview-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.12rem 0; font-size: 14px; color: #666;
}
.preview-row strong { color: #333; font-weight: 600; }
.preview-row--total { margin-top: 0.16rem; padding-top: 0.21333rem; border-top: 1px dashed #eee; }
.preview-row--total strong { color: #FF620A; font-size: 16px; }
.notice {
  margin-top: 0.26667rem; padding: 0.21333rem;
  background: #FFF8F2; border-radius: 0.10667rem;
  font-size: 12px; color: #B85A1A; line-height: 1.55;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 0.08rem; }

.bottom-bar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 0.26667rem 0.4rem calc(0.26667rem + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,.06); z-index: 50;
}
.bottom-bar__btn {
  display: block; width: 100%; height: 1.17333rem; border: 0; border-radius: 0.10667rem;
  background: var(--gradient-btn); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.bottom-bar__btn:disabled { opacity: .55; cursor: not-allowed; }
.bottom-bar__btn.is-loading { position: relative; color: transparent; }
.bottom-bar__btn.is-loading::after {
  content: "提交中…"; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}

/* 已提交结果 */
.result {
  text-align: center; padding: 1.2rem 0.4rem 0.6rem;
}
.result__icon {
  width: 64px; height: 64px; margin: 0 auto 0.4rem;
  border-radius: 50%; background: #E8F8EF; color: #22A06B;
  display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700;
}
.result__title { font-size: 20px; font-weight: 700; color: #333; }
.result__desc { margin-top: 0.21333rem; font-size: 14px; color: #666; line-height: 1.5; }
.ledger {
  margin-top: 0.16rem;
}
.ledger__row {
  display: flex; justify-content: space-between; padding: 0.16rem 0;
  border-bottom: 1px solid #f2f2f2; font-size: 14px; color: #666;
}
.ledger__row:last-child { border-bottom: 0; font-weight: 600; color: #333; }
.ledger__row b { color: #333; }
.actions { display: flex; flex-direction: column; gap: 0.26667rem; margin: 0.4rem; }
.actions .btn {
  display: block; height: 1.17333rem; line-height: 1.17333rem; text-align: center;
  border-radius: 0.10667rem; font-size: 16px; font-weight: 600;
}
.actions .btn--primary { background: var(--gradient-btn); color: #fff; }
.actions .btn--plain { background: #fff; color: #FF620A; border: 1px solid #FF620A; }
