:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --line: #e5e7eb;
  --text: #16181d;
  --muted: #6b7280;
  --accent: #246bfd;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 72px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; margin-bottom: 42px; color: var(--muted); font-size: 14px;
}
.brand { font-weight: 750; color: var(--text); letter-spacing: -.02em; font-size: 17px; }
.nav>a:last-child { padding: 8px 0; border-bottom: 1px solid #cdd1d8; }
.hero { max-width: 640px; margin-bottom: 30px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.14; margin: 0 0 12px; letter-spacing: -.045em; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  display: grid; grid-template-columns: 58px 1fr auto; grid-template-rows: auto auto auto;
  column-gap: 16px; align-items: center;
  padding: 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,24,40,.03);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.card:hover { border-color: #c7cbd2; box-shadow: 0 5px 18px rgba(16,24,40,.07); }
.icon {
  grid-row: 1 / 4; width: 58px; height: 58px; border-radius: 13px;
  display: grid; place-items: center; font-size: 27px;
  background: #f5f6f8;
}
.card h2 { grid-column: 2; margin: 0; font-size: 17px; line-height: 1.4; }
.blurb { grid-column: 2; margin: 3px 0 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.meta { grid-column: 2; display: flex; gap: 10px; color: #969ba5; }
.chip {
  font-size: 12px; color: inherit; padding: 0; border: 0; background: none;
}
.chip + .chip:before { content: "·"; margin-right: 10px; }
.cta {
  grid-column: 3; grid-row: 1 / 4;
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 7px; font-weight: 650; font-size: 13px;
  background: var(--text); color: #fff;
}
.card .cta.ghost { display: none; }
.cta.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.cta.off { background: #e5e7eb; color: #9298a3; pointer-events: none; }
.detail { max-width: 460px; margin: 0 auto; padding: 28px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.detail .nav { margin-bottom: 34px; }
.detail .icon { display: grid; margin: 0 auto 18px; width: 72px; height: 72px; font-size: 34px; border-radius: 16px; }
.detail .hero { margin: 0 auto 20px; }
.actions { display: grid; gap: 10px; margin: 22px 0 8px; }
.actions .cta { grid-column: auto; grid-row: auto; }
.qr-box {
  margin: 24px auto 0; padding: 12px 12px 10px; width: fit-content;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #111;
}
.qr-box img { display: block; width: 168px; height: 168px; }
.qr-box span { display: block; margin-top: 8px; font-size: 12px; color: #667; }
.tips { margin-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 520px); padding-top: 14px; }
  .nav { margin-bottom: 30px; }
  .grid { grid-template-columns: 1fr; }
  .card { grid-template-columns: 52px 1fr auto; padding: 18px 16px; column-gap: 13px; }
  .icon { width: 52px; height: 52px; border-radius: 11px; }
  .detail { margin-top: 12px; padding: 22px 18px; }
}
@media (max-width: 390px) {
  .card { grid-template-columns: 48px 1fr; }
  .icon { width: 48px; height: 48px; }
  .card .cta { grid-column: 1 / 3; grid-row: auto; margin-top: 15px; }
}
