:root {
  --color-primary: #2b7a8c;
  --color-primary-soft: #e9f5f7;
  --color-secondary: #5cb3a0;
  --color-accent: #f5a623;
  --color-bg: #fafbfc;
  --color-text: #2c3e50;
  --color-muted: #7f8c8d;
  --color-border: #dce7ea;
  --shadow-card: 0 18px 40px rgba(43, 122, 140, 0.12);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(92, 179, 160, 0.2), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.78);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 32px 22px;
  animation: screen-in 0.3s ease-out;
}

.screen-active {
  display: flex;
  flex-direction: column;
}

[data-screen='landing'] {
  justify-content: center;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(118px, 32vw);
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
}

.brand-name {
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

.landing-title {
  max-width: 380px;
  margin-right: auto;
  margin-left: auto;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

h2 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.lead {
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.7;
}

.lead.small {
  color: var(--color-muted);
  font-size: 15px;
}

.helper,
.disclaimer,
.report-status {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
}

.report-status {
  min-height: 22px;
  margin: 0;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.primary-button {
  width: 100%;
  margin-top: 18px;
  color: white;
  background: var(--color-accent);
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(245, 166, 35, 0.26);
}

.secondary-button {
  display: grid;
  place-items: center;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 600;
}

.ghost-button {
  color: var(--color-muted);
  background: transparent;
}

.quiz-back-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: #1f5f4f;
  font-size: 14px;
  font-weight: 600;
}

.topbar,
.quiz-header,
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill,
.dimension-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 13px;
  font-weight: 600;
}

.pill.muted {
  color: var(--color-muted);
  background: #f0f3f4;
}

.notice-card,
.question-card,
.result-block {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-card);
}

.notice-card {
  margin: 20px 0 8px;
  padding: 18px;
}

.phone-gate-screen {
  justify-content: center;
}

.phone-gate-card {
  display: grid;
  gap: 14px;
  margin: 0;
}

.phone-gate-card h2,
.phone-gate-card p {
  margin-bottom: 0;
}

.phone-field {
  display: grid;
  gap: 8px;
}

.phone-field span {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
}

.phone-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--color-text);
  background: #fff;
  font-size: 18px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #a9443f;
  font-size: 13px;
  line-height: 1.5;
}

.age-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.age-card {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px;
  color: var(--color-text);
  background: white;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.age-card strong {
  color: var(--color-primary);
  font-size: 18px;
}

.age-card span {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.age-card:active {
  transform: scale(0.99);
}

.notice-card p,
.result-block p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}

.question-count {
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 13px;
}

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

.progress-bar {
  height: 100%;
  width: 10%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  transition: width 0.3s ease-out;
}

.question-card {
  padding: 20px;
}

.question-title {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}

.question-card h2 {
  min-height: 86px;
  font-size: 18px;
  line-height: 1.65;
}

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

.option-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  color: var(--color-text);
  background: white;
  text-align: left;
  transition:
    transform 0.2s ease-out,
    border-color 0.2s ease-out,
    background 0.2s ease-out;
}

.option-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 700;
}

.option-card strong {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.option-card.selected {
  transform: scale(1.02);
  border-color: var(--color-secondary);
  background: #f1faf8;
}

.result-screen {
  gap: 16px;
}

.result-hero {
  padding: 22px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(145deg, var(--color-primary), var(--color-secondary));
}

.result-hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.result-hero h2 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.result-age {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.score-line span {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.radar-chart {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: white;
}

.result-block {
  padding: 18px;
}

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

.support-scenes {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.support-scene {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.support-scene strong {
  font-size: 14px;
}

.support-scene span {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.65;
}

.support-scene.risk {
  border-color: rgba(214, 69, 65, 0.34);
  background: #fff1f0;
}

.support-scene.risk strong {
  color: #a9443f;
}

.support-scene.notice {
  border-color: rgba(245, 166, 35, 0.6);
  background: #fff4df;
}

.support-scene.notice strong {
  color: #b86f00;
}

.support-scene.good {
  border-color: rgba(92, 179, 160, 0.45);
  background: #eef9f6;
}

.support-scene.good strong {
  color: var(--color-primary);
}

.advice-list li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--color-primary-soft);
}

.advice-list span {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.result-bottom-trigger {
  width: 100%;
  height: 1px;
}

.floating-consultation-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 24;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(245, 166, 35, 0.34);
  cursor: pointer;
}

.floating-consultation-button.is-hidden {
  display: none;
}

.consultation-sheet {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  width: min(calc(100% - 24px), 456px);
  max-height: min(82vh, 680px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid rgba(245, 166, 35, 0.58);
  border-radius: 8px;
  padding: 18px;
  color: var(--color-text);
  background: #fffaf0;
  box-shadow: 0 22px 54px rgba(43, 122, 140, 0.24);
  transform: translateY(calc(100% + 24px));
  transition: transform 0.24s ease-out;
}

.consultation-sheet.is-active {
  transform: translateY(0);
}

.consultation-sheet h3 {
  margin-right: 42px;
  color: #9a5b00;
}

.consultation-sheet > p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}

.tracking-line {
  margin-top: 10px;
}

.tracking-line strong {
  color: #9a5b00;
  font-variant-numeric: tabular-nums;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(154, 91, 0, 0.2);
  border-radius: 8px;
  color: #9a5b00;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.consultation-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(245, 166, 35, 0.42);
  border-radius: 8px;
  background: white;
}

.consultation-card div {
  display: grid;
  gap: 4px;
}

.consultation-card strong {
  color: var(--color-text);
  font-size: 16px;
}

.consultation-card span,
.consultation-note {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
}

.phone-button {
  display: grid;
  place-items: center;
  margin-top: 0;
  min-height: 46px;
  box-shadow: 0 14px 28px rgba(245, 166, 35, 0.32);
}

.qr-marketing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.qr-card {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.qr-card img {
  display: block;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid #edf2f3;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.qr-card figcaption {
  display: grid;
  gap: 4px;
  text-align: center;
}

.qr-card strong {
  color: var(--color-text);
  font-size: 14px;
}

.qr-card span {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}

.consultation-note {
  margin: 12px 0 0;
}

.contact-actions {
  align-items: stretch;
}

.contact-actions > * {
  flex: 1;
}

.restart-button {
  margin-top: 0;
  box-shadow: none;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
