/* ============ 全局 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: #f2f2f2;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.phone {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f2f2f2;
  position: relative;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ============ 第一页 头部 ============ */
.page-personal { padding-bottom: 30px; }

.hero {
  background: linear-gradient(160deg, #FF9A2E 0%, #FF7A00 55%, #FF6A00 100%);
  padding: 46px 24px 88px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;

  z-index: 0;
}

.hero-text {
  max-width: 62%;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero-text p {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.7;
}

.hero-art { width: 0; }

.mini-shield {
  position: absolute;
  top: 20px;
  right: -6px;
  width: 34%;
  max-width: 150px;
  aspect-ratio: 96 / 118;
  filter: drop-shadow(0 8px 20px rgba(230,120,0,0.35));
}
.mini-shield svg { display: block; width: 100%; height: 100%; }

.mini-card {
  position: absolute;
  right: 14%;
  bottom: 54px;
  width: 20%;
  max-width: 84px;
  min-width: 60px;
  aspect-ratio: 3 / 2;
  background: linear-gradient(150deg, rgba(255,255,255,0.94), rgba(255,238,214,0.88));
  border-radius: 9px;
  box-shadow: 0 6px 14px rgba(200,90,0,0.22);
  opacity: 0.7;
}
.mini-card .chip {
  position: absolute; left: 10%; top: 18%;
  width: 16%; height: 18%;
  background: #FF8A3C; border-radius: 2px;
}
.mini-card .line { position: absolute; height: 7%; background: #fff; border-radius: 99px; }
.mini-card .l1 { left: 36%; top: 22%; width: 56%; }
.mini-card .l2 { left: 11%; top: 55%; width: 76%; }
.mini-card .dot { position: absolute; right: 8%; bottom: 12%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #F0512C; }

/* 窄屏进一步收紧：缩小标题、副标题字号，留出图形空间 */
@media (max-width: 380px) {
  .hero-text p { font-size: 12.5px; }
}
@media (max-width: 340px) {
  .hero-text p { font-size: 11.5px; }
}
@media (max-width: 360px) {
  .hero { padding: 38px 18px 78px; }
  .hero-text h1 { font-size: 26px; }
}

/* ============ 表单卡片区域 ============ */
.sheet {
  position: relative;
  top: 20px;
  z-index: 2;
  background: #f7f7f7;
  margin: -52px 14px 0;
  border-radius: 14px;
  padding: 22px 16px 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-left: 12px;
  position: relative;
  margin: 4px 0 16px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 4px; height: 16px;
  border-radius: 2px;
  background: #FF7A00;
}
.finance-title { margin-top: 2px; }

/* ============ 输入框 / 选择框 ============ */
.field { margin-bottom: 16px; position: relative; }

.field input {
  width: 100%;
  height: 52px;
  border: none;
  outline: none;
  border-radius: 10px;
  background: #ececec;
  padding: 0 16px;
  font-size: 15px;
  color: #333;
  transition: box-shadow 0.15s;
}
.field input::placeholder { color: #b5b5b5; }
.field input:focus { box-shadow: 0 0 0 2px rgba(255,122,0,0.35); }

.select-box {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  background: #ececec;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.select-box .select-value {
  font-size: 15px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.select-box .select-value.placeholder { color: #b5b5b5; }
.select-box .arrow {
  width: 16px; height: 16px;
  color: #999;
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.2s;
}
.select-field.open .select-box .arrow { transform: rotate(180deg); }
.select-field.open .select-box { border-radius: 10px 10px 0 0; }

/* 下拉菜单（贴着选择框向下展开，与截图一致） */
.dropdown {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  max-height: 280px;
  overflow-y: auto;
  z-index: 60;
}
.dropdown .option {
  padding: 14px 18px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}
.dropdown .option:active { background: #f5f5f5; }
.dropdown .option.selected { color: #FF7A00; }

/* 错误状态 */
.field.error .select-box,
.field.error input {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #e34d4d;
}
.err-msg {
  display: none;
  color: #e34d4d;
  font-size: 13px;
  margin-top: 6px;
  padding-left: 2px;
}
.field.error .err-msg { display: block; }

/* ============ 确认按钮 ============ */
.btn-area {
  padding: 8px 24px 0;
  position: relative;
  z-index: 3;
  margin-top: 20px;
}

.confirm-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 26px;
  background: linear-gradient(90deg, #FF8A1E, #FF6A00);
  color: #fff;
  font-size: 17px;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(255,122,0,0.35);
}
.confirm-btn:active { opacity: 0.85; }

/* ============ 协议勾选行 ============ */
.agreement-row {
  display: flex;
  justify-content: center;
  padding: 22px 0 30px;
  position: relative;
  z-index: 3;
}
.agree-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}
.agree-label.agree-error { color: #e34d4d; }
.agree-label.agree-error .radio { border-color: #e34d4d; }
.agree-label.agree-error .agree-link { color: #e34d4d; }
.radio {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.5px solid #bbb;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: border-color 0.15s;
}
.agree-label.checked .radio {
  border-color: #FF7A00;
  background: #FF7A00;
}
.agree-label.checked .radio::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.agree-link { color: #2f7bff; text-decoration: none; }

/* ============ 第二页 / 第三页 ============ */
.page-finance, .page-result { padding: 16px 14px 34px; }

.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.page-finance .card { padding-bottom: 10px; }

/* ============ 结果页 ============ */
.result-card { text-align: center; margin-bottom: 16px; }

.result-title { font-size: 21px; font-weight: 700; color: #222; margin-bottom: 14px; }
.result-sub { font-size: 15px; color: #333; margin-bottom: 20px; text-align: left; }

.quota-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.quota-item { flex: 1; }
.quota-label { font-size: 14px; color: #555; margin-bottom: 10px; }
.quota-value { font-size: 30px; font-weight: 700; color: #FF7A00; }
.quota-value span { letter-spacing: 0.5px; }
.quota-divider { width: 1px; height: 52px; background: #e5e5e5; }

.quota-note { font-size: 13px; color: #888; text-align: left; line-height: 1.7; }

.tips-card p { font-size: 14px; color: #555; line-height: 1.9; text-align: left; }

/* ============ 协议弹窗 ============ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 22px;
}
.modal {
  width: 100%;
  max-width: 380px;
  max-height: 82vh;
  background: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  padding: 18px 20px 12px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
  text-align: center;
  flex-shrink: 0;
}
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 20px 16px;
  font-size: 13.5px;
  color: #444;
  line-height: 1.8;
  white-space: pre-wrap;
  -webkit-overflow-scrolling: touch;
}
.modal-footer {
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.warn-body {
  text-align: center;
  padding: 22px 24px 18px;
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}
.modal-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 23px;
  background: linear-gradient(90deg, #FF8A1E, #FF6A00);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.modal-btn:active { opacity: 0.85; }
