:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --ink: #1f2328;
  --muted: #6d747c;
  --line: #e6ded4;
  --panel: #ffffff;
  --accent: #157a5a;
  --accent-press: #0f6248;
  --soft: #f0e5d6;
  --shadow: 0 18px 42px rgba(56, 47, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 44%, #edf4ef 100%);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.page {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-top: 6px;
}

.cover {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(114, 81, 45, 0.18);
}

.headline {
  min-width: 0;
}

.kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.subhead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.qr-panel {
  margin-top: 4px;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.qr-wrap {
  padding: 10px;
  border-radius: 8px;
  background: var(--panel);
}

.qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button {
  min-height: 50px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    transform 0.14s ease,
    background-color 0.14s ease,
    border-color 0.14s ease;
}

.button:active {
  transform: translateY(1px);
}

.primary {
  color: #ffffff;
  background: var(--accent);
}

.primary:active {
  background: var(--accent-press);
}

.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.notice {
  margin: auto 0 0;
  padding: 12px 4px 0;
  color: #7b6f63;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 360px) {
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .cover {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  h1 {
    font-size: 24px;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
