* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: #eef5fd;
  color: #0b234a;
}
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #eef5fd; }

/* 顶部横幅 */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1125 / 585;
  background: url(/static/img/img-top@3x.png) no-repeat center / cover;
  padding-top: 9.6%;
  text-align: left;
}
.hero h1 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.4px;
  padding: 0 24px;
}
.hero p {
  margin-top: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 24px;
}

/* 内容区 */
.content { padding: 0 12px 24px; margin-top: -12%; position: relative; }
.card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(31, 70, 116, 0.05), 0 8px 18px rgba(42, 91, 149, 0.13);
  padding: 14px 12px;
  margin-bottom: 12px;
}
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.card-head img { width: 18px; height: 18px; }
.card-head h2 { font-size: 16px; font-weight: 600; color: #0b234a; }

.field { margin-top: 12px; }
.field label { display: block; font-size: 14px; color: #243b60; margin-bottom: 7px; }
.field label i { color: #e31b23; font-style: normal; font-weight: 600; }

input[type="text"], input[type="tel"], input[type="number"] {
  width: 100%;
  height: 36px;
  border: 1px solid #a9bdd8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 2px rgba(37, 70, 111, 0.02);
  padding: 0 11px;
  font-size: 14px;
  color: #0b234a;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: #687893; }
input:focus { border-color: #078af4; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field.error input { border-color: #e31b23; }
.field.error .seg { outline: 1px solid #e31b23; }

/* 是/否 分段选择 */
.seg {
  display: flex;
  background: rgba(218, 236, 255, 0.96);
  border-radius: 7px;
  padding: 2px;
  height: 36px;
}
.seg-btn {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  color: #243b60;
  cursor: pointer;
}
.seg-btn.active {
  background: #078af4;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 5px rgba(7, 95, 200, 0.24);
}

/* 验证码行 */
.code-row { position: relative; }
.code-row input { padding-right: 106px; }
.send-btn {
  position: absolute;
  right: -1px;
  top: -1px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #078af4;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(7, 95, 200, 0.24);
}
.send-btn:disabled { background: #9ec9ef; box-shadow: none; cursor: default; }

/* 提示条 */
.notice {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(222, 238, 255, 0.94);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12px;
  color: #078af4;
  line-height: 1.5;
}
.notice img { width: 14px; height: 14px; margin-top: 2px; }

/* 两列布局 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }

/* 带单位输入框 */
.unit-input { position: relative; }
.unit-input input { padding-right: 34px; }
.unit-input span {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #0b234a;
}

/* 合计栏 */
.total-bar {
  display: flex;
  align-items: center;
  background: rgba(216, 235, 255, 0.94);
  border: 1px solid rgba(7, 138, 244, 0.18);
  border-radius: 8px;
  min-height: 41px;
  padding: 0 17px;
  margin: 20px 0 0;
}
.total-label { font-size: 16px; font-weight: 600; color: #078af4; flex: 1; }
.total-num { font-size: 25px; font-weight: 600; color: #078af4; margin-right: 6px; }
.total-unit { font-size: 14px; color: #0b234a; }

/* 提交按钮 */
.submit-btn {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  background: #078af4;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 7px 8px rgba(7, 95, 200, 0.26);
}
.submit-btn:disabled { background: #9ec9ef; box-shadow: none; }

/* 弹窗 */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 58, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.mask[hidden] { display: none; }
.dialog {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 340px;
  padding: 18px 16px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.dialog h3 { font-size: 17px; color: #0b234a; text-align: center; margin-bottom: 12px; }
.dialog-body { overflow-y: auto; flex: 1; }
.dialog-body .row {
  display: flex;
  justify-content: space-between;
  padding: 7px 2px;
  font-size: 13px;
  border-bottom: 1px dashed #e3ecf7;
}
.dialog-body .row span:first-child { color: #687893; }
.dialog-body .row span:last-child { color: #0b234a; font-weight: 500; }
.dialog-body .row.hl span:last-child { color: #078af4; font-weight: 600; }
.dialog-btns { display: flex; gap: 10px; margin-top: 14px; }
.dialog-btns button {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}
.btn-ghost { border: 1px solid #a9bdd8; background: #fff; color: #243b60; }
.btn-primary { border: 0; background: #078af4; color: #fff; font-weight: 600; }
.btn-primary:disabled { background: #9ec9ef; }

/* 图形验证码弹窗 */
.captcha-dialog { max-width: 295px; padding: 0; overflow: hidden; border-radius: 12px; }
.captcha-body { padding: 20px 16px 26px; }
.captcha-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  color: #061a3a;
}
.captcha-title .pill { width: 4px; height: 16px; border-radius: 12px; background: #078af4; }
.captcha-img {
  display: block;
  width: 100%;
  height: 70px;
  margin: 16px 0;
  cursor: pointer;
  border-radius: 4px;
}
.captcha-body input {
  width: 100%;
  height: 36px;
  border: 1px solid #a9bdd8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 2px rgba(37, 70, 111, 0.02);
  padding: 0 11px;
  font-size: 14px;
  color: #0b234a;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.captcha-body input:focus { border-color: #078af4; }
.captcha-btns { display: flex; border-top: 1px solid #edf2f9; }
.captcha-btns button {
  flex: 1;
  height: 44px;
  border: 0;
  background: #fff;
  font-size: 16px;
  color: #687893;
  cursor: pointer;
}
.captcha-btns button.ok { color: #078af4; border-left: 1px solid #edf2f9; }

.dialog.success { text-align: center; align-items: center; padding: 28px 16px; }
.ok-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #078af4;
  color: #fff;
  font-size: 30px;
  line-height: 56px;
  margin-bottom: 14px;
}
.dialog.success p { font-size: 13px; color: #687893; margin-top: 6px; }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translateX(-50%);
  background: rgba(6, 26, 58, 0.85);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 200;
  max-width: 80%;
  text-align: center;
}
.toast[hidden] { display: none; }
