:root {
  --bg: #fff8f2;
  --card: #ffffff;
  --text: #4a3f38;
  --muted: #6e625a;
  --subtitle: #a39891;
  --accent: #f7c5a8;
  --accent-strong: #eca08a;
  --shadow: 0 14px 30px rgba(74, 63, 56, 0.08);
  --radius: 18px;
  --max-width: 2100px;
  --border: #f2eae4;
  --tag-bg: #f6ede7;
  --tag-text: #c87d75;
  --dot: #e6b2a2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(248, 205, 181, 0.12), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(236, 160, 138, 0.12), transparent 35%),
              var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  padding: 0 14px 48px;
}
.shell {
  width: 100%;
  max-width: var(--max-width);
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
#quiz {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 72px 16px 40px;
  min-height: 100vh;
  background: transparent;
}
.quiz-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 16px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quiz-card {
  width: 100%;
  max-width: var(--max-width);
  margin: 30px auto;
  padding: 24px 22px 22px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(74, 63, 56, 0.08);
}
#home .page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0 48px;
}
#home .intro-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 26px 20px 24px;
}
.intro-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.intro-title {
  font-size: 28px;
  margin: 14px 0 10px;
  letter-spacing: 0.4px;
  color: var(--text);
  text-align: center;
}
.intro-subtitle {
  font-size: 16px;
  color: var(--subtitle);
  margin: 0 0 14px;
  line-height: 1.6;
}
.intro-desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14.5px;
  margin: 10px 0 18px;
}
.features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 16px;
}
.feature-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 10px;
  box-shadow: 0 8px 22px rgba(74, 63, 56, 0.08);
}
.feature-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot);
  margin-top: 4px;
  flex-shrink: 0;
}
.feature-content h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text);
}
.feature-content p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.privacy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  box-shadow: 0 8px 22px rgba(74, 63, 56, 0.08);
  margin-bottom: 18px;
}
.intro-hint {
  color: var(--tag-text);
  font-weight: 600;
  margin: 6px 0 14px;
  font-size: 14px;
}
.start-btn {
  width: 88%;
  display: block;
  margin: 0 auto;
  padding: 15px 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(236, 160, 138, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.start-btn:active { transform: translateY(1px); filter: brightness(0.96); }
h1, h2, h3, p { margin: 0; }
.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(224, 168, 153, 0.18);
  color: var(--accent-strong);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.title {
  font-size: 26px;
  margin: 10px 0 8px;
  letter-spacing: 0.4px;
}
.subtitle {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}
.cta { margin-top: 18px; }
.btn {
  width: 100%;
  padding: 14px 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 12px 20px rgba(210, 129, 112, 0.18);
}
.btn:active { transform: translateY(1px); filter: brightness(0.96); }
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  background: #d7c5bb;
}
.page { display: none; }
.page.active { display: block; }
.progress { margin-bottom: 14px; }
.progress-text {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.bar {
  margin-top: 6px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.bar-inner {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(224,168,153,0.9), rgba(210,129,112,0.9));
  transition: width 0.3s ease;
}
.question {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: center;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
}
.option {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #f6eaea;
  background: #ffffffcc;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: left;
}
.option strong {
  display: inline-block;
  width: 22px;
  color: var(--accent-strong);
}
.option.selected {
  border-color: var(--accent-strong);
  background: rgba(236, 160, 138, 0.08);
  box-shadow: 0 6px 14px rgba(236, 160, 138, 0.18);
}
.nav-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.secondary {
  background: #f6ede7;
  color: var(--text);
  box-shadow: none;
}
.secondary:disabled { opacity: 0.5; }
.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}
.keyword-chip {
  background: rgba(236, 160, 138, 0.14);
  border: 1px solid rgba(236, 160, 138, 0.3);
  color: var(--accent-strong);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 12px rgba(236, 160, 138, 0.16);
}
.type-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px 12px;
  box-shadow: 0 10px 22px rgba(74, 63, 56, 0.08);
  border: 1px solid var(--border);
  margin-top: 8px;
}
.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 20px rgba(74, 63, 56, 0.08);
  margin-top: 12px;
  border: 1px solid var(--border);
  line-height: 1.7;
}
.result-title {
  font-size: 22px;
  margin-top: 8px;
  margin-bottom: 6px;
}
.keywords { margin: 12px 0 14px; }
#result .keyword-chips {
  justify-content: center;
}
#result .keyword-chip {
  text-align: center;
}
#result .result-title {
  text-align: center;
  font-size: 26px;
}
#result #resultType {
  text-align: center;
  font-size: 20px;
  line-height: 1.6;
}
#result .keywords {
  line-height: 1.7;
}
#result .section-card h3 {
  color: var(--accent-strong);
  line-height: 1.6;
  margin-bottom: 10px;
}
.section { margin-top: 14px; }
.section h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}
.section p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  margin-top: 6px;
}
.tip {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.result-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-direction: column;
}
@media (min-width: 760px) {
  body { padding-top: 48px; }
  .title { font-size: 30px; }
  .card { padding: 28px 26px; }
  .intro-title { font-size: 32px; }
  #home .intro-card { padding: 32px 26px; }
}
.option {
  width: 100%;
}
@media (max-width: 768px) {
  .quiz-card {
    max-width: var(--max-width);
    width: 100%;
    margin: 18px auto 22px;
    padding: 22px 18px;
    border-radius: 18px;
  }
  .option {
    width: 100%;
  }
}
