:root {
  --ink: #171513;
  --muted: #6f665d;
  --paper: #fff9ef;
  --surface: rgba(255, 253, 247, 0.94);
  --line: rgba(23, 21, 19, 0.16);
  --accent: #b83d2f;
  --accent-strong: #8f2d24;
  --green: #0f766e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px 28px;
  color: #fffdf7;
  background: rgba(23, 21, 19, 0.92);
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand span {
  display: grid;
  width: 42px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 850;
}

.topbar nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.88);
}

.topbar nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 118px 40px 56px;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(23, 21, 19, 0.42), rgba(23, 21, 19, 0.02));
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 720px;
  color: #fffdf7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
  animation: rise-in 560ms ease-out both;
}

.kicker {
  margin: 0 0 10px;
  color: #e7a65f;
  font-size: 13px;
  font-weight: 850;
}

.hero h1 {
  margin: 0;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
}

.hero-copy p:not(.kicker) {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 253, 247, 0.92);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.ghost-action,
.submit-action,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.primary-action,
.submit-action {
  padding: 0 20px;
  color: #fffdf7;
  background: var(--accent);
}

.primary-action:hover,
.submit-action:hover {
  background: var(--accent-strong);
}

.ghost-action {
  padding: 0 18px;
  color: #fffdf7;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 44px 0 0;
}

.metrics div {
  min-width: 128px;
  flex: 0 1 150px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.metrics dt {
  color: rgba(255, 253, 247, 0.7);
  font-size: 12px;
}

.metrics dd {
  margin: 4px 0 0;
  font-size: 23px;
  font-weight: 850;
  white-space: nowrap;
}

.tool-section,
.template-section,
.seo-section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 78px 40px;
  border-top: 1px solid var(--line);
}

.tool-section {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(320px, 420px) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  background: #fffdf7;
}

.tool-intro h2,
.template-copy h2,
.seo-section h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.tool-intro p,
.template-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.amount-form,
.claim-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  outline: none;
  background: #fffdf7;
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.result-panel {
  min-height: 340px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.copy-button {
  min-width: 72px;
  padding: 0 14px;
  color: var(--green);
  background: rgba(15, 118, 110, 0.1);
}

.result-item {
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.result-item h3,
.result-item p {
  margin: 0;
}

.result-item p {
  color: #2d2925;
  line-height: 1.7;
}

.empty,
.form-note {
  color: var(--muted);
  line-height: 1.7;
}

.template-section {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 52px;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.offer-grid article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.offer-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.offer-grid h3 {
  margin: 12px 0 10px;
  font-size: 22px;
}

.offer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.payment-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.qr-block {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 18px 44px rgba(23, 21, 19, 0.12);
}

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

.qr-block figcaption {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.qr-block strong {
  color: var(--ink);
  font-size: 16px;
}

.seo-section {
  background: #fffdf7;
}

.share-hero {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 124px 40px 54px;
}

.share-hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.share-hero h1 span {
  display: block;
}

.share-hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 40px 78px;
}

.share-grid article {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.share-grid img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 21, 19, 0.12);
}

.share-grid h2 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.share-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.share-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 14px;
  border-radius: 999px;
  padding: 0 14px;
  color: #fffdf7;
  background: var(--accent);
  font-weight: 850;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.seo-links a {
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #2d2925;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 40px;
  color: rgba(255, 253, 247, 0.72);
  background: var(--ink);
}

.footer a {
  color: #fffdf7;
  font-weight: 850;
}

@keyframes rise-in {
  from {
    transform: translateY(18px);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .topbar {
    padding: 12px 18px;
  }

  .topbar nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 96px 18px 44px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 34px;
  }

  .metrics div {
    min-width: 0;
    flex: 1 1 155px;
  }

  .hero-copy p:not(.kicker) {
    font-size: 15px;
  }

  .tool-section,
  .template-section,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .tool-section,
  .template-section,
  .seo-section,
  .share-hero {
    padding: 54px 18px;
  }

  .tool-intro h2,
  .template-copy h2,
  .seo-section h2 {
    font-size: 30px;
  }

  .amount-form,
  .claim-form {
    padding: 20px;
  }

  .result-item,
  .form-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .payment-layout {
    gap: 22px;
  }

  .share-grid {
    grid-template-columns: 1fr;
    padding: 0 18px 54px;
  }

  .share-hero h1 {
    font-size: 31px;
    line-height: 1.18;
  }

  .share-hero p:last-child {
    font-size: 15px;
  }

  .share-grid img {
    width: min(100%, 270px);
  }

  .qr-block {
    width: min(420px, 100%);
  }

  .footer,
  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .ghost-action,
  .submit-action {
    width: 100%;
  }
}
