* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #dfe6ee;
  color: #1d2430;
}
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.stage { min-height: 100vh; }
.stage-note {
  text-align: center;
  padding: 16px 12px 0;
  color: #526070;
  font-size: 14px;
}
.stage-note a { color: #1f6feb; }
.phone {
  width: 390px;
  height: min(780px, calc(100vh - 56px));
  margin: 12px auto 16px;
  background: #f6f7fb;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(22, 39, 68, 0.18);
  display: flex;
  flex-direction: column;
}
#nav { background: #fff; }
.nav-home, .nav-sub {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 650;
}
.nav-home { gap: 6px; font-size: 16px; }
.pin { width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: #2f89ff; transform: rotate(-45deg); position: relative; }
.pin:after { content: ""; position: absolute; width: 6px; height: 6px; background: #fff; border-radius: 50%; left: 5px; top: 5px; }
.nav-sub { position: relative; justify-content: center; font-size: 17px; }
.back {
  position: absolute;
  left: 8px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  padding: 6px 10px;
  color: #1d2430;
}
#view { flex: 1; overflow: auto; }
.banner {
  height: 168px;
  margin: 0 0 -28px;
  background:
    linear-gradient(180deg, rgba(10, 40, 80, 0.05), rgba(10, 40, 80, 0.28)),
    linear-gradient(120deg, #8eb6df, #d7e6f5 42%, #f3d7c4);
  position: relative;
}
.banner:before, .banner:after {
  content: "";
  position: absolute;
  bottom: 28px;
  background: rgba(255, 255, 255, 0.78);
}
.banner:before { left: 28px; width: 150px; height: 78px; border-radius: 4px 4px 0 0; }
.banner:after { right: 36px; width: 92px; height: 104px; }
.panel {
  margin: 0 14px;
  background: #fff;
  border-radius: 18px;
  padding: 8px 16px 18px;
  position: relative;
  box-shadow: 0 10px 30px rgba(31, 56, 92, 0.08);
}
.row {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
}
.row .label { width: 78px; font-size: 16px; flex: none; }
.row .value { flex: 1; min-width: 0; color: #b7bdc7; font-size: 15px; }
.row .value.on { color: #1d2430; }
.row .sub { display: block; color: #e25b12; font-size: 13px; margin-top: 3px; font-weight: 700; }
.chev { color: #c5cad3; font-size: 18px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #667085;
  font-size: 14px;
  padding: 14px 0 16px;
}
.check input { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.buy {
  width: 100%;
  border: 0;
  height: 48px;
  border-radius: 24px;
  background: #2f89ff;
  color: #fff;
  font-size: 17px;
  font-weight: 650;
}
.buy:disabled { opacity: 0.6; }
.search-wrap { padding: 8px 16px 4px; background: #fff; }
.search {
  width: 100%;
  border: 0;
  background: #f3f4f6;
  border-radius: 18px;
  padding: 11px 14px;
  outline: none;
}
.list { background: #fff; margin-top: 8px; }
.item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f2f3f5;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  text-align: left;
  font-size: 16px;
}
.item .price, .money { color: #e25b12; font-weight: 700; white-space: nowrap; }
.item.column { flex-direction: column; align-items: flex-start; }
.item.column > span { display: flex; width: 100%; justify-content: space-between; gap: 8px; }
.item small { color: #667085; font-size: 12px; line-height: 1.5; }
.group { padding: 10px 16px 4px; color: #667085; font-size: 13px; }
.muted { color: #98a2b3; text-align: center; padding: 48px 20px; }
.orders { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.order {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}
.order-top, .order-line { display: flex; justify-content: space-between; gap: 8px; }
.order-top { color: #98a2b3; font-size: 12px; }
.order h3 { margin: 8px 0 4px; font-size: 16px; }
.tag { color: #17803d; }
.tag.off { color: #98a2b3; }
.cancel {
  margin-top: 10px;
  border: 1px solid #d5dde6;
  background: #fff;
  border-radius: 16px;
  padding: 6px 12px;
}
.survey-entry {
  width: calc(100% - 28px);
  margin: 14px;
  background: #fff;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  box-shadow: 0 8px 24px rgba(31, 56, 92, 0.05);
}
.survey-entry b { display: block; font-size: 16px; }
.survey-entry small { color: #98a2b3; }
.form { padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #344054; }
.form input, .form select, .form textarea {
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  font: inherit;
}
.form textarea { min-height: 96px; resize: vertical; }
.field-block { font-size: 14px; color: #344054; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-block; padding: 8px 12px; border-radius: 999px; background: #fff; white-space: nowrap; }
.choices input:checked + span { background: #e8f1ff; color: #1f6feb; font-weight: 700; }
.survey-intro h3 { margin: 4px 0 6px; font-size: 18px; text-align: center; }
.survey-intro p { margin: 0; color: #667085; font-size: 13px; line-height: 1.6; }
.wizard { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.wizard h3 { margin: 0; font-size: 20px; line-height: 1.45; }
.step-count { color: #98a2b3; font-size: 13px; }
.step-list { max-height: 360px; overflow: auto; background: #fff; border-radius: 14px; }
.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice {
  width: 100%;
  text-align: left;
  border: 1px solid #e4e7ec;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
}
.step-list .choice { border: 0; border-bottom: 1px solid #f2f3f5; border-radius: 0; }
.choice.on { background: #e8f1ff; color: #1f6feb; font-weight: 700; }
.wizard input, .wizard textarea {
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  font: inherit;
}
.wizard textarea { min-height: 120px; resize: vertical; }
.wizard-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 8px; }
.wizard-actions.single { grid-template-columns: 1fr; }
.wizard-actions .ghost, .wizard-actions .buy { height: 44px; border-radius: 22px; border: 0; }
.wizard-actions .ghost { background: #f2f4f7; }
.company { text-align: center; color: #98a2b3; font-size: 12px; margin: 0; }
.content-card { margin: 0 14px 18px; background: #fff; border-radius: 14px; padding: 14px; }
.content-card h3 { margin: 0 0 8px; font-size: 16px; }
.content-card div { white-space: pre-wrap; color: #344054; font-size: 13px; line-height: 1.7; }
.score { display: flex; gap: 8px; }
.score input { position: absolute; opacity: 0; }
.score span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f4f7;
  color: #667085;
}
.score label { position: relative; }
.score input:checked + span { background: #fff3e8; color: #e25b12; font-weight: 700; }
.staff-card { background: #fff; border-radius: 14px; padding: 14px; }
.staff-card h3 { margin: 0 0 6px; font-size: 17px; }
.staff-meta { color: #667085; font-size: 13px; margin-bottom: 6px; }
.agree-text {
  max-height: 128px;
  overflow: auto;
  white-space: pre-wrap;
  background: #f7f8fa;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #344054;
  text-align: left;
}
.tabbar {
  height: 62px;
  background: #fff;
  border-top: 1px solid #eef0f3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.tabbar button {
  border: 0;
  background: transparent;
  color: #98a2b3;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.tabbar button.active { color: #2f89ff; }
.ico { width: 22px; height: 22px; background: currentColor; }
.ico.home {
  clip-path: polygon(50% 8%, 90% 42%, 78% 42%, 78% 88%, 22% 88%, 22% 42%, 10% 42%);
}
.ico.order {
  clip-path: polygon(22% 12%, 78% 12%, 78% 88%, 22% 88%);
  box-shadow: inset 0 7px 0 #fff, inset 0 -11px 0 #fff;
}
.ico.staff {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='3.2'/><path d='M6 19.2c.8-3.4 3-5.2 6-5.2s5.2 1.8 6 5.2z'/></svg>") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='3.2'/><path d='M6 19.2c.8-3.4 3-5.2 6-5.2s5.2 1.8 6 5.2z'/></svg>") center / 18px 18px no-repeat;
}
.ico.mine {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='8.2' fill='none' stroke='black' stroke-width='1.7'/><circle cx='12' cy='10' r='2.3'/><path d='M8 16.4c.6-2 2-3 4-3s3.4 1 4 3z'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='8.2' fill='none' stroke='black' stroke-width='1.7'/><circle cx='12' cy='10' r='2.3'/><path d='M8 16.4c.6-2 2-3 4-3s3.4 1 4 3z'/></svg>") center / 20px 20px no-repeat;
}
.mine-head { margin: 16px 14px 0; padding: 16px; border-radius: 16px; background: linear-gradient(120deg, #2f89ff, #7eb6ff); color: #fff; display: flex; gap: 12px; align-items: center; }
.mine-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.mine-head p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.88); }
.mine-note { margin: 12px 14px 0; background: #fff7ed; color: #9a3412; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.6; }
.mine-stats { margin: 12px 14px 0; background: #fff; border-radius: 14px; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 12px 0; }
.mine-stats button { border: 0; background: transparent; color: #667085; font-size: 12px; }
.mine-stats strong { display: block; color: #1d2430; font-size: 20px; margin-bottom: 4px; }
.mine-card { margin: 12px 14px 0; background: #fff; border-radius: 14px; padding: 4px 14px 8px; }
.mine-card h3 { margin: 12px 0 6px; font-size: 16px; }
.mine-menu { width: 100%; border: 0; border-top: 1px solid #f2f4f7; background: #fff; display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 12px 0; }
.mine-menu small { display: block; color: #98a2b3; margin-top: 4px; }
.mine-price { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #f2f4f7; padding: 10px 0; font-size: 14px; }
.mine-price b { color: #e25b12; font-weight: 700; }
.mine-copy { white-space: pre-wrap; color: #344054; font-size: 13px; line-height: 1.7; margin: 0 0 12px; }
.sheet {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  display: flex;
  align-items: flex-end;
}
.sheet-card {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px 22px;
}
.sign-head { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 14px; }
.sign-clear { border: 0; background: transparent; color: #2f89ff; padding: 0; }
.sign-pad {
  width: 100%;
  height: 128px;
  margin-top: 8px;
  border: 1px dashed #c5ced8;
  border-radius: 12px;
  background: #fff;
  touch-action: none;
}
.sign-tip { margin-top: 6px; color: #98a2b3; font-size: 12px; }
.sign-shot {
  display: block;
  width: 100%;
  height: 72px;
  margin-top: 10px;
  object-fit: contain;
  background: #f7f8fa;
  border-radius: 10px;
}
.sheet-card h3 { margin: 0 0 12px; text-align: center; }
.sheet-card label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  color: #344054;
}
.sheet-card label:not(.check) input {
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 10px 12px;
}
.sheet-card p { display: flex; justify-content: space-between; margin: 0; padding: 11px 0; border-bottom: 1px solid #f2f3f5; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }
.sheet-actions button { height: 44px; border-radius: 22px; border: 0; }
.sheet-actions .ghost { background: #f2f4f7; }
.sheet-actions .buy { height: 44px; }
.toast {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: rgba(28, 36, 48, 0.88);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 240px;
  text-align: center;
}
@media (max-width: 520px) {
  .stage-note { display: none; }
  .phone { width: 100%; height: 100vh; margin: 0; border-radius: 0; }
}
