:root {
  color-scheme: light;
  --bg-top: #fff6e9;
  --bg-bottom: #eef3ff;
  --card: rgba(255, 255, 255, 0.86);
  --card-border: rgba(23, 35, 68, 0.08);
  --ink: #172344;
  --muted: #5f6b8b;
  --accent: #f26d3d;
  --accent-deep: #d75628;
  --accent-soft: rgba(242, 109, 61, 0.12);
  --success: #1f8a4c;
  --warning: #d97f00;
  --shadow: 0 22px 60px rgba(28, 38, 68, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 122, 0.45), transparent 28%),
    radial-gradient(circle at top right, rgba(131, 172, 255, 0.32), transparent 34%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  backdrop-filter: blur(18px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-copy,
.section-head p,
.field span,
.meta-label,
.incoming-offer p {
  color: var(--muted);
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 210px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 138, 76, 0.12);
  color: var(--success);
  font-weight: 600;
}

.badge.muted {
  background: rgba(23, 35, 68, 0.06);
  color: var(--muted);
}

.stack {
  padding: 22px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.24rem;
}

.section-head p {
  margin: 0;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field input {
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(23, 35, 68, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.field input:focus {
  outline: none;
  border-color: rgba(242, 109, 61, 0.55);
  box-shadow: 0 0 0 4px rgba(242, 109, 61, 0.12);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  font-weight: 700;
}

.secondary-button {
  background: linear-gradient(135deg, #20397f, #3757b3);
  color: white;
  font-weight: 700;
}

.ghost-button {
  background: rgba(23, 35, 68, 0.06);
  color: var(--ink);
  font-weight: 600;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.code-panel {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(242, 109, 61, 0.08), rgba(32, 57, 127, 0.08)),
    rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 35, 68, 0.08);
}

.code-panel strong {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.18em;
}

.code-panel p {
  margin: 0;
  color: var(--muted);
}

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 112px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 35, 68, 0.06);
}

.meta-card strong {
  line-height: 1.5;
  word-break: break-word;
}

.transfer-card {
  grid-column: span 2;
}

.transfer-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 35, 68, 0.06);
}

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

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 35, 68, 0.08);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffb36d);
  transition: width 180ms ease;
}

.incoming-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(242, 109, 61, 0.18);
}

.incoming-offer h3 {
  margin: 0 0 6px;
}

.incoming-offer p {
  margin: 0;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(31, 138, 76, 0.12);
  color: var(--success);
  text-decoration: none;
  font-weight: 700;
}

.full-width {
  grid-column: span 2;
}

.activity-log {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-log li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 35, 68, 0.06);
  color: var(--muted);
}

@media (max-width: 920px) {
  .layout,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-badges {
    align-items: flex-start;
    min-width: 0;
  }

  .transfer-card,
  .full-width {
    grid-column: span 1;
  }

  .incoming-offer {
    flex-direction: column;
    align-items: stretch;
  }
}
