:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #172033;
  --muted: #64748b;
  --blue: #245b9e;
  --blue-soft: #e8f0fb;
  --gold: #9a7840;
  --gold-soft: #f6efe2;
  --line: #e6edf6;
  --shadow: 0 14px 34px rgba(48, 76, 115, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 86px;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(151, 113, 42, 0.12);
}

.brand-text {
  margin-left: 10px;
  line-height: 1.2;
}

.brand-name {
  font-weight: 900;
  font-size: 18px;
}

.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.phone-link {
  padding: 9px 13px;
  border: 1px solid #d8e1ee;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
}

.hero {
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, #eef5ff 0%, var(--bg) 100%);
}

.hero-card,
.section,
.form-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px 20px;
}

.kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-soft {
  color: var(--blue);
  background: var(--blue-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.stat {
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: #7b8798;
  font-size: 12px;
}

.section {
  margin: 14px 16px 0;
  padding: 18px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 900;
}

.section-note {
  margin-top: 6px;
  color: #8d97a6;
  font-size: 12px;
  white-space: nowrap;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.entry {
  padding: 14px 8px;
  border-radius: 13px;
  background: #f7faff;
  text-align: center;
}

.entry-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.entry-title {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 900;
}

.entry-desc {
  margin-top: 4px;
  color: #8d97a6;
  font-size: 11px;
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-name {
  font-size: 18px;
  font-weight: 900;
}

.product-desc {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tag {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.metric {
  padding: 10px 8px;
  border-radius: 11px;
  background: #f7faff;
}

.metric strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
}

.metric span {
  display: block;
  margin-top: 5px;
  color: #8792a2;
  font-size: 11px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tool {
  padding: 14px;
  border-radius: 13px;
  background: #f7faff;
}

.tool strong {
  display: block;
  font-size: 15px;
}

.tool span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.article-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}

.article-tabs button {
  padding: 10px;
  border: 0;
  border-radius: 999px;
  background: #f7faff;
  color: #475569;
  font-weight: 900;
}

.article-tabs button.active {
  background: var(--blue);
  color: #fff;
}

.article {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #334155;
  font-size: 14px;
}

.article:first-of-type {
  border-top: 0;
}

.article time {
  color: #8d97a6;
  text-align: right;
  font-size: 12px;
}

.advisor {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 14px;
  align-items: center;
}

.advisor p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.qr {
  width: 128px;
  height: 128px;
  border: 8px solid #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(48, 76, 115, 0.1);
}

.submit-hero {
  padding: 22px 16px 0;
}

.form-card {
  margin: 14px 16px 0;
  padding: 18px;
}

.form-title {
  font-size: 24px;
  font-weight: 900;
}

.form-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mt-10 {
  margin-top: 10px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #7b8798;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: #f7faff;
  color: var(--ink);
  outline: 0;
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.job-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.job-chip {
  padding: 10px 13px;
  border-radius: 999px;
  background: #f7faff;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.job-chip.active {
  background: var(--blue-soft);
  color: var(--blue);
}

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

.privacy {
  margin-top: 12px;
  color: #8d97a6;
  font-size: 12px;
  line-height: 1.55;
}

.toast {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 11px;
  background: #ecfdf3;
  color: #166534;
  font-size: 13px;
  line-height: 1.5;
}

.toast.show {
  display: block;
}

.section-head.compact {
  margin-bottom: 8px;
}

.helper-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.helper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.helper-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7faff;
}

.helper-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.helper-item span {
  display: block;
  min-height: 58px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.tool-btn {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 0;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.footer-note {
  margin: 18px 18px 0;
  color: #8d97a6;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(760px, 100%);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 28px rgba(48, 76, 115, 0.12);
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 28px;
  }

  .entry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .entry-title {
    font-size: 12px;
  }

  .entry-desc {
    display: none;
  }

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

  .mini-grid,
  .helper-grid {
    grid-template-columns: 1fr;
  }

  .advisor {
    grid-template-columns: 1fr 106px;
  }

  .qr {
    width: 106px;
    height: 106px;
  }
}
