:root {
  --blue: #0b63e5;
  --blue-deep: #0847ad;
  --ink: #172033;
  --muted: #5c6b80;
  --line: #e4e9f0;
  --bg: #f3f6fa;
  --card: #fff;
  --danger: #d92d20;
  --ok: #079455;
  --shadow: 0 10px 30px rgba(20, 40, 80, 0.08);
  --radius: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }

.app-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(160deg, #3d8bff, var(--blue-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0;
}
.brand b { display: block; font-size: 16px; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.nav-links { display: flex; gap: 6px; }
.nav-links button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
}
.nav-links button.active { background: #e8f1ff; color: var(--blue); font-weight: 650; }

.wrap { width: min(1120px, calc(100% - 28px)); margin: 18px auto 40px; }
.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.row { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
}
.btn.ghost { background: #eef3f9; color: var(--ink); }
.btn.line { background: #fff; color: var(--blue); border: 1px solid #c9dbf8; }
.btn.warn { background: #fff4f2; color: var(--danger); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.block { width: 100%; }

.idea {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 4px;
  margin: 0 0 14px;
}
.idea button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
}
.idea button.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.idea i { font-style: normal; opacity: 0.7; margin-right: 4px; }

.pitch-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: start;
}
.kicker {
  display: inline-block;
  background: #e8f1ff;
  color: var(--blue);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}
h1 { font-size: 28px; line-height: 1.25; margin: 8px 0; }
h2 { font-size: 18px; margin: 0 0 8px; }
.say {
  background: #f7f9fc;
  border-radius: 14px;
  padding: 14px 14px 12px;
  line-height: 1.7;
  font-size: 16px;
}
.say p { margin: 0; }
.block-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.note-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.field span { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: #8eb6f5; }
.field textarea { min-height: 72px; resize: vertical; }

.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone {
  width: 320px;
  max-width: 100%;
  background: #0e1116;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.18);
}
.phone-screen {
  background: #f5f7fb;
  border-radius: 28px;
  overflow: hidden;
}
.demo-stage {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.nfc-card {
  width: min(340px, 100%);
  border: 0;
  text-align: left;
  color: #fff;
  border-radius: 18px;
  padding: 18px 18px 14px;
  background: linear-gradient(155deg, #3c8dff 0%, #0a56d8 55%, #083e9e 100%);
  box-shadow: 0 12px 24px rgba(11, 99, 229, 0.28);
  position: relative;
  overflow: hidden;
}
.nfc-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 18px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  right: -40px;
  top: -50px;
}
.nfc-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: 0.92; }
.nfc-title { font-size: 34px; font-weight: 800; letter-spacing: 2px; margin: 18px 0 16px; }
.nfc-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.nfc-pills span {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.nfc-foot { margin-top: 14px; font-size: 12px; opacity: 0.9; }
.nfc-card.sensing { animation: tap 0.45s ease; }
@keyframes tap {
  0% { transform: scale(1); }
  40% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.store-head {
  background: linear-gradient(180deg, #0b63e5, #2d7ef2);
  color: #fff;
  padding: 22px 16px 16px;
}
.store-head .tag { font-size: 12px; opacity: 0.85; }
.store-head h3 { margin: 6px 0 4px; font-size: 22px; }
.store-head p { margin: 0; font-size: 13px; opacity: 0.92; line-height: 1.5; }
.ch-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ch {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(16,24,40,0.04);
}
.ch-ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; flex: 0 0 auto;
  font-weight: 800; font-size: 13px;
}
.ch > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.ch b { display: block; font-size: 15px; }
.ch small { color: var(--muted); }
.ch .go { margin-left: auto; color: #9aa8b8; font-size: 18px; }
.page-note { text-align: center; color: #98a2b3; font-size: 12px; padding: 8px 0 14px; }
.seed-box {
  margin: 0 10px 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.seed-head { margin-bottom: 8px; }
.seed-head b { display: block; font-size: 15px; }
.seed-head span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.seed-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.seed-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  background: #f7f9fc;
  border-radius: 999px;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 13px;
}
.seed-tabs button.on {
  background: #e8f1ff;
  border-color: #b7d0f8;
  color: var(--blue);
  font-weight: 650;
}
.seed-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  max-height: 180px;
  overflow: auto;
}
.seed-actions { margin-top: 8px; }

.sheet-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, 0.45);
  display: grid; align-items: end; justify-items: center; z-index: 40;
  padding: 16px;
}
.nfc-box {
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  background: #f3f7ff;
  border: 1px solid #d5e4ff;
}
.nfc-box h2 { margin-bottom: 10px; }
.nfc-url {
  word-break: break-all;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  margin: 8px 0;
}
.sheet {
  width: min(480px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 14px 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.sheet h3 { margin: 0 0 8px; }
.sheet p { margin: 0 0 12px; line-height: 1.6; }

.shop-grid, .log-list { display: flex; flex-direction: column; gap: 10px; }
.shop-item, .log-item {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  background: #fff;
}
.stat { font-size: 12px; color: var(--muted); }
.editor {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  align-items: start;
}
.ch-edit {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
  background: #fff;
}
.ch-edit.off { opacity: 0.55; }
.ch-edit .top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.switch {
  width: 42px; height: 24px; border-radius: 99px; border: 0; background: #d0d5dd; position: relative;
}
.switch.on { background: var(--ok); }
.switch i {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: left 0.15s ease;
}
.switch.on i { left: 21px; }
.mini { border: 0; background: #f2f4f7; border-radius: 8px; padding: 6px 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #172033; color: #fff; padding: 10px 14px; border-radius: 999px;
  z-index: 50; font-size: 14px;
}
.clean-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line);
}
.customer-only { min-height: 100vh; background: #e9eef5; }
.customer-only .phone { margin: 18px auto; }

.empty { padding: 28px 10px; text-align: center; color: var(--muted); }
.badge-ok { color: var(--ok); font-weight: 700; }
.badge-no { color: var(--danger); font-weight: 700; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 860px) {
  .pitch-grid, .editor, .split-2 { grid-template-columns: 1fr; }
  .brand span { display: none; }
  h1 { font-size: 24px; }
  .wrap { width: min(100% - 16px, 1120px); }
}
