:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --brand: #16a34a;
  --brand-d: #15803d;
  --line: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 700;
}
.tenant {
  font-size: 13px; color: var(--brand-d);
  background: rgba(22, 163, 74, .1); padding: 4px 10px; border-radius: 999px;
}

.content { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 14px; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 14px 16px 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.card-head h2 { margin: 0; font-size: 16px; }

.cover { width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.tag {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 12px;
}
.product-card h1 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.price .now { color: #ef4444; font-size: 22px; font-weight: 700; }
.price .origin { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.price .unit { color: var(--muted); font-size: 13px; }
.desc { color: var(--muted); margin: 0 0 14px; font-size: 14px; }

.actions { display: flex; gap: 10px; }
.btn {
  border: none; border-radius: 10px; padding: 10px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s;
}
.btn.primary { background: var(--brand); color: #fff; flex: 1; }
.btn.primary:active { background: var(--brand-d); }
.btn.ghost { background: rgba(22, 163, 74, .1); color: var(--brand-d); }
.btn.tiny { padding: 5px 12px; font-size: 12px; background: var(--brand); color: #fff; }

.copy-text {
  margin: 0; padding: 14px 16px; white-space: pre-wrap; word-break: break-word;
  font-size: 14px; color: #334155; background: #f8fafc;
}

.tpl-list { list-style: none; margin: 0; padding: 8px 16px 14px; }
.tpl-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.tpl-list li:last-child { border-bottom: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.hot { background: #ef4444; }
.dot.promo { background: #f59e0b; }
.dot.review { background: #3b82f6; }
.dot.event { background: var(--brand); }

.toast {
  position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, .9); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
