* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  background: #ededed;
  color: #1a1a1a;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
  background: #ededed;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  position: relative;
}

/* 顶栏 */
.topbar {
  background: #ededed;
  padding: 8px 0 6px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 44px;
}
.topbar .icon-x,
.topbar .icon-more {
  width: 32px;
  font-size: 24px;
  text-align: center;
  color: #181818;
  cursor: pointer;
  user-select: none;
}
.topbar .icon-more { letter-spacing: -2px; font-weight: 700; }
.title { flex: 1; text-align: center; }
.title .t1 { font-size: 16px; font-weight: 600; line-height: 1.1; }
.title .t2 { font-size: 11px; color: #888; margin-top: 1px; }

/* 顶部Banner */
.hero-banner {
  background: #6fb6a9;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  padding: 14px 0;
  letter-spacing: 2px;
}

/* 装饰区 */
.decor {
  width: 100%;
  line-height: 0;
}
.decor svg {
  width: 100%;
  height: 130px;
  display: block;
}

/* 表单 */
.form {
  background: #fff;
  padding: env(safe-area-inset-top) 0 20px;
}
.form-title {
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  padding: 22px 0 18px;
}

/* 区段标题 */
.section-title {
  padding: 14px 16px 8px;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* 字段行 */
.field {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  position: relative;
  min-height: 50px;
  gap: 12px;
}
.field.column { flex-direction: column; align-items: stretch; gap: 10px; }
.field.column .row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.field .label {
  width: 110px;
  flex-shrink: 0;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.4;
}
.field .label .req { color: #e64340; margin-right: 2px; }
.field input[type="text"],
.field input[type="tel"] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: #1a1a1a;
  padding: 4px 0;
  font-family: inherit;
  min-width: 0;
}
.field input::placeholder { color: #b8b8b8; }
.field .value-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.field .value-wrap.right { justify-content: flex-end; }
.field .placeholder {
  color: #b8b8b8;
  font-size: 15px;
}
.field .placeholder.filled { color: #1a1a1a; }

/* 右侧箭头 */
.field.arrow::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #c0c0c0;
  border-top: 2px solid #c0c0c0;
  transform: translateY(-50%) rotate(45deg);
}
.field.arrow { padding-right: 32px; }
.field.arrow.column::after { top: 26px; }

/* 标签按钮 */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  color: #fff;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}
.tag[data-color="red"]    { background: #e85a4f; }
.tag[data-color="orange"] { background: #f0ad4e; }
.tag[data-color="green"]  { background: #3ab07b; }
.tag[data-color="lime"]   { background: #a3c83a; }
.tag[data-color="cyan"]   { background: #2bbac3; }
.tag[data-color="purple"] { background: #6f6bf1; }
.tag[data-color="violet"] { background: #b25cd1; }
.tag[data-color="pink"]   { background: #ef5d8c; }
.tag[data-color="teal"]   { background: #2bbab1; }
.tag[data-color="yellow"] { background: #d2c63a; }
.tag[data-color="blue"]   { background: #3a73c8; }
.tag[data-color="emerald"]{ background: #2bbab1; }
.tag[data-color="navy"]   { background: #5a6378; }
.tag[data-color="lightpink"]{ background: #f2c6c6; color: #444; }
.tag[data-color="cream"]  { background: #f5e2b8; color: #6a5500; }
.tag[data-color="mint"]   { background: #cfe8c8; color: #3d6332; }
.tag[data-color="khaki"]  { background: #e2e09b; color: #6b682e; }
.tag[data-color="magenta"]{ background: #cc3aa3; }

/* 上传 */
.uploader { display: inline-block; margin-left: 122px; }
.up-preview {
  width: 92px;
  height: 92px;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.up-preview img { width: 100%; height: 100%; object-fit: cover; }
.up-preview .plus {
  font-size: 32px;
  color: #bbb;
  font-weight: 300;
  line-height: 1;
}

/* 必填错误样式 */
.field.error { background: #fff0f0; }
.field.error .err-msg {
  color: #e64340;
  font-size: 12px;
  margin-top: 4px;
}

/* 提交按钮 */
.submit-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 24px auto 0;
  height: 46px;
  background: #2bbab1;
  color: #fff;
  border: 0;
  border-radius: 24px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 4px;
  cursor: pointer;
}
.submit-btn:active { background: #25a59c; }
.submit-btn:disabled { background: #b8e0db; cursor: not-allowed; }
.footer-space { height: 30px; }

/* 底部弹层 */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}
.sheet.show { display: block; }
.sheet-mask {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
}
.sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px 8px 0 0;
  max-width: 480px;
  margin: 0 auto;
  animation: slideUp .2s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px 4px;
  font-size: 16px;
}
.sheet-head .clear-btn,
.sheet-head .confirm-btn {
  color: #2196f3;
  cursor: pointer;
}
.sheet-search {
  padding: 8px 14px 8px;
}
.sheet-search input {
  width: 100%;
  height: 36px;
  background: #f1f1f1;
  border: 0;
  border-radius: 18px;
  padding: 0 16px;
  font-size: 14px;
  outline: 0;
}
.sheet-tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sheet-tabs::-webkit-scrollbar { display: none; }
.sheet-tabs:empty { display: none; }
.sheet-tabs .tab {
  flex-shrink: 0;
  padding: 10px 2px;
  font-size: 15px;
  color: #333;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.sheet-tabs .tab.active {
  color: #2196f3;
  border-bottom-color: #2196f3;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
  -webkit-overflow-scrolling: touch;
}
.sheet-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  gap: 12px;
  border-bottom: 1px solid #f7f7f7;
  cursor: pointer;
}
.sheet-row .radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c8c8c8;
  flex-shrink: 0;
  position: relative;
}
.sheet-row.active .radio {
  border-color: #2196f3;
  background: #2196f3;
}
.sheet-row.active .radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.sheet-row .text {
  font-size: 15px;
  color: #1a1a1a;
}
.sheet-row .tag { font-size: 13px; }
.sheet-empty {
  text-align: center;
  color: #bbb;
  padding: 30px 0;
  font-size: 14px;
}

/* Toast */
.toast {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 100;
  display: none;
  max-width: 80vw;
  text-align: center;
}
.toast.show { display: block; }

.field.error .label { color: #e64340; }
