:root {
  --green-950: #083526;
  --green-850: #0f4a36;
  --green-650: #1f7a55;
  --green-100: #e8f4ed;
  --blue: #2a8fb8;
  --ink: #1e2724;
  --muted: #687571;
  --line: #dfe7e3;
  --paper: #f6f8f7;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(8, 53, 38, 0.14);
}

* { box-sizing: border-box; }

html { background: #dfe7e3; }

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  background: linear-gradient(180deg, #e9f0ed 0%, #f7f9f8 36%, #eef3f1 100%);
}

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

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(8, 53, 38, 0.08);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: env(safe-area-inset-top) 18px 0;
  background: rgba(246, 248, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--green-950);
  font-weight: 800;
  background: transparent;
  border: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.phone-link {
  color: var(--green-850);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.view { display: none; }
.view.active { display: block; }

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: var(--green-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 390px;
  padding: 34px 22px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 53, 38, 0.2) 0%, rgba(8, 53, 38, 0.78) 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-650);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow { color: #a8e6c4; }

h1, h2, h3, p { margin-top: 0; }

.cn,
.en {
  display: block;
}

.en {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 500;
  line-height: 1.35;
}

.hero .en,
.hero .eyebrow .en {
  color: rgba(255, 255, 255, 0.72);
}

.inline {
  display: inline;
  margin-left: 4px;
}

h1 {
  max-width: 9em;
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--green-950);
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--green-950);
  font-size: 16px;
}

.hero-subtitle {
  max-width: 19em;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}

.content { padding: 22px 18px 30px; }

.intro {
  color: var(--muted);
  font-size: 16px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-850), var(--green-650));
  box-shadow: var(--shadow);
}

.secondary-btn {
  color: var(--green-850);
  background: var(--white);
  border-color: var(--line);
}

.ghost-btn {
  min-height: 36px;
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  text-align: left;
}

.full { width: 100%; }

.tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}

.tag-grid span,
.pill-list span {
  border: 1px solid rgba(31, 122, 85, 0.18);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-850);
  font-size: 13px;
  font-weight: 700;
}

.tag-grid span { padding: 12px; }

.brand-panel,
.question-card,
.result-card,
.copy-block,
.contact-card,
.success-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(8, 53, 38, 0.06);
}

.brand-panel { padding: 18px; }
.brand-panel ul { padding-left: 18px; color: var(--muted); }

.quiz-content { min-height: calc(100vh - 160px); }

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  margin: 8px 0 18px;
  border-radius: 99px;
  background: #dce5e0;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 10%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-650), var(--blue));
  transition: width 0.2s ease;
}

.question-card { padding: 20px; }

.options-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fdfefe;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.option-btn:active {
  border-color: var(--green-650);
  background: var(--green-100);
}

.option-btn.selected {
  border-color: var(--green-650);
  background: var(--green-100);
  color: var(--green-950);
  font-weight: 800;
}

.option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-650);
  font-size: 14px;
  font-weight: 900;
}

.quiz-next {
  margin-top: 16px;
}

.primary-btn:disabled,
.secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.result-header {
  padding: 18px 0 4px;
}

.result-header p:last-child {
  color: var(--muted);
}

.result-card { padding: 16px; }

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child { border-bottom: 0; }
.spec-row span { color: var(--muted); }
.spec-row strong { color: var(--green-950); text-align: right; }

.copy-block {
  margin-top: 14px;
  padding: 16px;
}

.copy-block p { margin-bottom: 0; color: var(--muted); }

.muted-block {
  border-color: rgba(42, 143, 184, 0.22);
  background: #f2f8fa;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list span { padding: 8px 10px; }

.summary-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.qrcode-panel {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.qrcode-panel img,
.contact-card img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.qrcode-panel p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--green-950);
  font-size: 14px;
  font-weight: 800;
}

.lead-form label span { color: #b54545; }

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
}

.success-box {
  margin: 14px 0;
  padding: 15px;
  color: var(--green-850);
  font-weight: 700;
}

.admin-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed rgba(31, 122, 85, 0.45);
  border-radius: 8px;
  background: #eef7f2;
}

.admin-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.footer {
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer button {
  padding: 0;
  margin-bottom: 12px;
  color: var(--green-850);
  font-weight: 800;
  background: transparent;
  border: 0;
}

@media (min-width: 420px) {
  .action-row { grid-template-columns: 1fr 1fr; }
  .action-row .primary-btn { grid-column: 1 / -1; }
  h1 { font-size: 40px; }
}
