:root {
  --brand: #0E2A47;
  --brand-2: #1B3E63;
  --accent: #E8590C;
  --green: #07C160;
  --ink: #16181d;
  --ink-2: #5b616b;
  --ink-3: #9aa0a8;
  --line: #ebedf0;
  --bg: #f5f6f7;
  --card: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: env(safe-area-inset-bottom); }

a { color: inherit; text-decoration: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
}

.nav .back {
  width: 28px;
  height: 28px;
  margin-left: -6px;
  margin-right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav .back::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.hero {
  background: var(--brand);
  color: #fff;
  padding: 26px 20px 30px;
}

.hero .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.5px;
}

.hero .co { font-size: 14px; letter-spacing: .5px; opacity: .92; }

.hero h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.3px;
}

.hero p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .72); }

.entry {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.entry .ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry .ico.fire { background: #FDECE4; }
.entry .ico.farm { background: #E8F5EC; }

.entry h3 { margin: 0 0 3px; font-size: 16px; font-weight: 500; }
.entry .sub { font-size: 12.5px; color: var(--ink-3); }
.entry .arrow {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--ink-3);
  border-top: 1.6px solid var(--ink-3);
  transform: rotate(45deg);
  flex: 0 0 8px;
}

.entry.dim { opacity: .55; }

.section-title {
  font-size: 13px;
  color: var(--ink-3);
  margin: 24px 0 10px;
  padding-left: 2px;
  letter-spacing: .3px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.card + .card { margin-top: 10px; }

.steps { display: flex; gap: 8px; }

.step { flex: 1; text-align: center; }

.step .dot {
  width: 26px;
  height: 26px;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: #EFF1F4;
  color: var(--brand-2);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.step .t { font-size: 12px; color: var(--ink-2); line-height: 1.4; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.green { background: var(--green); }
.btn:disabled { opacity: .5; }

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.bottom-bar .btn { max-width: 640px; margin: 0 auto; }

.pad-bottom { padding-bottom: 86px; }

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field label .req { color: var(--accent); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbfc;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  appearance: none;
}

.field textarea { height: 84px; padding: 10px 12px; resize: none; line-height: 1.5; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand-2); background: #fff; }

.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.seg { display: flex; background: #EFF1F4; border-radius: 9px; padding: 3px; }

.seg button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
}

.seg button.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

.badge {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #EFF1F4;
  color: var(--ink-2);
}

.badge.warn { background: #FDECE4; color: #B4460A; }
.badge.ok { background: #E7F7EE; color: #07833F; }
.badge.done { background: #EAF0F6; color: var(--brand-2); }

.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-3); }
.kv .v { text-align: right; max-width: 62%; }

.price { font-size: 26px; font-weight: 600; letter-spacing: -.5px; }

.muted { color: var(--ink-3); font-size: 12.5px; }

.footer { text-align: center; color: var(--ink-3); font-size: 11.5px; padding: 26px 0 22px; line-height: 1.8; }

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 22, 26, .88);
  color: #fff;
  padding: 11px 18px;
  border-radius: 9px;
  font-size: 14px;
  z-index: 99;
  opacity: 0;
  transition: opacity .18s;
  pointer-events: none;
  max-width: 76%;
  text-align: center;
}

.toast.show { opacity: 1; }

.qr-box {
  width: 148px;
  height: 148px;
  margin: 14px auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-box img { width: 100%; height: 100%; object-fit: contain; }

.qr-ph { font-size: 12px; color: var(--ink-3); text-align: center; padding: 0 12px; line-height: 1.5; }

.list-item {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.list-item .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.list-item .no { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.list-item .ttl { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.list-item .meta { font-size: 12.5px; color: var(--ink-3); }

.empty { text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 50px 0; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 20px;
  background: #F1F3F6;
  color: var(--ink-2);
}

.feature { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature .fi { width: 30px; flex: 0 0 30px; font-size: 13px; color: var(--accent); font-weight: 600; padding-top: 1px; }
.feature h4 { margin: 0 0 3px; font-size: 14.5px; font-weight: 500; }
.feature p { margin: 0; font-size: 12.8px; color: var(--ink-2); line-height: 1.55; }

@media (prefers-color-scheme: dark) {
  /* 演示环境固定浅色，避免微信内夜间模式错乱 */
}
