:root {
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #e3d9c8;
  --card: #fffdf8;
  --accent: #9a3412;
  --banner: #7c2d12;
  --max: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

button, input { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 16px calc(48px + env(safe-area-inset-bottom));
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 14px 0 8px;
}

.brand {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #c8bfb0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.kicker {
  margin: 18px 0 0;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
}

h1 {
  margin: 6px 0 12px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2 { margin: 28px 0 12px; font-size: 18px; }

.lead { margin: 0 0 16px; font-size: 17px; }

.dim-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 0 0 8px;
  padding: 12px;
  list-style: none;
  counter-reset: dim;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
}

.dim-names li { counter-increment: dim; }

.dim-names li::before {
  content: counter(dim) " ";
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.tiers, .cards, .qrs { display: grid; gap: 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}

.tag {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.price {
  margin: 6px 0 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.usd, .note { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.banner {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: var(--banner);
  color: #fffaf5;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.flow {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
}

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.steps li { display: flex; gap: 10px; align-items: flex-start; }

.num {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.qr {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qr img {
  width: min(220px, 70vw);
  background: #fff;
  border-radius: 8px;
}

.wx {
  margin: 16px 0 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.wx code {
  display: inline-block;
  margin-top: 4px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.promises { margin: 0; padding-left: 1.2em; }

.promises li { margin: 8px 0; }

.report h1 { margin-top: 0; }

.material { margin: 0 0 8px; color: var(--muted); }

.dims { margin: 0; padding: 0; list-style: none; counter-reset: dim; }

.dim {
  counter-increment: dim;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.dim h2 { margin: 0 0 4px; font-size: 17px; }

.dim h2::before {
  content: counter(dim) ". ";
  color: var(--accent);
}

.ask { margin: 0 0 8px; color: var(--muted); font-size: 14px; }

.body, .variants {
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px dashed #c8bfb0;
  border-radius: 10px;
}

.variants { padding-left: 2em; }

.variants li { margin: 6px 0; }

footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

footer a { color: inherit; }

.stats-panel {
  margin-top: 24px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
}

.stats-panel h2 { margin: 0 0 8px; color: inherit; font-size: 15px; }

.stats-panel p {
  margin: 2px 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 700px) {
  h1 { font-size: 36px; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .qrs { grid-template-columns: 1fr 1fr; }
}
