@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400..900&family=Newsreader:opsz,wght@6..72,400..800&display=swap');

:root {
  --bg: #fbf8f3;
  --surface: #fff;
  --surface-alt: #f4efe8;
  --text: #171513;
  --muted: #6f675c;
  --line: #e2dcd3;
  --brand: #1a5160;
  --brand-soft: rgba(26, 81, 96, 0.08);
  --accent: #7a5c45;
  --shadow: 0 18px 44px rgba(23, 21, 19, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 0%, rgba(26, 81, 96, 0.1), transparent 32%),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 34%, #f6efe5 100%);
  font-family: "Hanken Grotesk", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; object-fit: cover; }

.wechat-preview-image {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 500px;
  height: 500px;
  opacity: 0.01;
  pointer-events: none;
}

.share-page {
  width: min(100% - 28px, 720px);
  margin: 0 auto;
  padding: 18px 0 28px;
}

.share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  color: var(--brand);
}
.share-header img { width: auto; height: 48px; object-fit: contain; }
.share-header span {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(26, 81, 96, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-card,
.section,
.cta-card {
  border: 1px solid rgba(226, 220, 211, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}
.hero-card {
  display: grid;
  overflow: hidden;
}
.hero-copy { padding: 24px 22px 16px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 1px solid rgba(26, 81, 96, 0.14);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}
h1,
h2 {
  color: var(--brand);
  font-family: "Newsreader", Georgia, "Songti SC", "Noto Serif SC", serif;
  letter-spacing: 0;
}
h1 {
  max-width: 100%;
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.06;
  font-weight: 780;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 span { display: block; }
.code {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}
.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.badges span {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
}
.hero-image {
  order: -1;
  padding: 12px;
  background:
    radial-gradient(circle at 72% 18%, rgba(26, 81, 96, 0.08), transparent 36%),
    #faf8f4;
}
.hero-image img {
  width: 100%;
  height: clamp(280px, 72vw, 420px);
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.section {
  margin-top: 16px;
  padding: 22px;
}
.section.is-empty { display: none; }
h2 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 760;
}
.text-list {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}
.text-list p { line-height: 1.78; }
.text-list strong { color: var(--text); font-weight: 820; }

.poster-section {
  text-align: center;
}
.poster-hint {
  margin: -4px auto 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.poster-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(26, 81, 96, 0.16);
}
.poster-button:active {
  transform: translateY(1px);
}
.share-spec {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}
.share-spec-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 13px 14px;
  background: #fff;
}
.share-spec-row:nth-child(even) { background: #fbfaf7; }
.share-spec-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.share-spec-row strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.share-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.share-gallery figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.share-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 8px;
  background: #faf8f4;
}
.share-gallery figcaption {
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.qr-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf7;
}
.qr-card img {
  width: 150px;
  height: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}
.qr-card p {
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.65;
}
.qr-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.share-related {
  display: grid;
  gap: 10px;
}
.share-related-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.share-related-card > a {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.share-related-card img {
  width: 92px;
  height: 104px;
  object-fit: contain;
  padding: 8px;
  background: var(--surface-alt);
}
.share-related-card div { min-width: 0; padding-right: 12px; }
.share-related-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.share-related-card strong {
  display: block;
  margin-top: 2px;
  color: var(--brand);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 850;
}
.share-related-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cta-card {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}
.cta-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.cta-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
}
.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
.cta-row .btn:last-child { grid-column: 1 / -1; }

.footer {
  padding: 24px 14px 36px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@media (min-width: 680px) {
  .hero-card {
    grid-template-columns: 1fr 0.9fr;
    align-items: stretch;
  }
  .hero-copy { padding: 32px; }
  .hero-image { order: 0; display: grid; place-items: center; }
  .hero-image img { height: auto; aspect-ratio: 4 / 3; }
  .cta-row { grid-template-columns: repeat(3, 1fr); }
  .cta-row .btn:last-child { grid-column: auto; }
}

@media (max-width: 420px) {
  .share-page { width: min(100% - 20px, 720px); padding-top: 12px; }
  .share-header img { height: 42px; }
  .share-header span { font-size: 12px; }
  .hero-copy, .section { padding: 20px; }
  h1 { font-size: clamp(30px, 9vw, 42px); }
  .share-spec-row { grid-template-columns: 1fr; gap: 3px; }
  .share-gallery { grid-template-columns: 1fr; }
  .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
