/* ========================================
   LuranCare Assessment V2 - Styles
   完全按照产品规范文档设计
   ======================================== */

/* === Design Tokens (from spec) === */
:root {
  --bg-warm: #F8F5F1;
  --card-white: #FFFFFF;
  --primary: #E8A1AE;
  --primary-rgb: 232, 161, 174;
  --accent: #B7A99A;
  --text-dark: #2F1B17;
  --text-muted: #6B5D54;
  --border-light: #EDE8E4;
  --success-green: #7BA885;
}

/* Reset & Base */
.assessment-wrapper {
  min-height: 100vh;
  background: var(--bg-warm);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(47, 27, 23, 0.06);
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo .logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--text-dark); }

.nav-cta {
  padding: 0.55rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}
.nav-cta-active {
  opacity: 1 !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: 0.25s;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 0.75rem 2rem;
  z-index: 998;
  border-bottom: 1px solid var(--border-light);
}

.progress-bar {
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto 0.35rem;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.progress-info {
  display: flex;
  justify-content: center;
}

.progress-step {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Section Base */
.assessment-section {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  min-height: calc(100vh - 64px);
  padding: 7rem 1.5rem 3rem;
}

.assessment-section.active {
  display: block;
  opacity: 1;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
}

.hero-content {
  max-width: 580px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== QUESTION SECTION ===== */
.question-section {
  padding-top: 110px;
}

.question-card {
  background: var(--card-white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 16px rgba(47, 27, 23, 0.06);
}

.question-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  text-align: center;
  line-height: 1.2;
}

.question-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.5;
}

.question-helper {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0.5rem;
  text-align: center;
  line-height: 1.5;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.option-card {
  background: var(--card-white);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 1.15rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  position: relative;
}

.option-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.12);
}

.option-card.selected {
  background: linear-gradient(135deg, #FFF9FA 0%, #FFFFFF 100%);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.18);
}

.option-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.option-description {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Multi-select checkmark */
.options-grid.multi-select .option-card.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--primary);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Question Navigation */
.question-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

/* Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
  line-height: 1.3;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-back {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}
.btn-back:hover {
  color: var(--primary);
}

.btn-large {
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
}

.btn-full-width {
  width: 100%;
  text-align: center;
}

/* ===== TRANSITION / LUNA SECTION ===== */
.transition-section,
.trust-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-card,
.trust-card {
  background: var(--card-white);
  border-radius: 20px;
  padding: 2.75rem 2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(47, 27, 23, 0.06);
  max-width: 560px;
  width: 100%;
}

.transition-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.transition-headline,
.trust-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.transition-text,
.trust-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.trust-text strong { color: var(--text-dark); }

/* Luna Intro */
.luna-intro {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  margin: 1.5rem 0;
  text-align: left;
  background: var(--bg-warm);
  padding: 1.25rem;
  border-radius: 14px;
}

.luna-avatar {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.luna-greeting {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.luna-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ===== RESULTS SECTION ===== */
.results-section {
  padding-top: 110px;
}

.results-card {
  background: var(--card-white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 16px rgba(47, 27, 23, 0.06);
}

.results-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.2;
}

.results-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  text-align: center;
}

/* Recommendation Primary */
.recommendation-primary {
  background: linear-gradient(135deg, #FFF9FA 0%, #FFFFFF 100%);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary);
}

.recommendation-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.recommendation-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.recommendation-content {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.recommendation-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
}
.recommendation-content li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.recommendation-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.85rem;
}

/* Recommendation Add-ons */
.recommendation-addons {
  background: var(--bg-warm);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.addons-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.addons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.addon-item {
  background: white;
  padding: 0.55rem 1.05rem;
  border-radius: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

/* Next Steps */
.next-steps {
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 1.5rem;
}

.next-steps-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.15rem;
}

.next-steps-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step-counter;
}

.next-steps-list li {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 1.15rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.next-steps-list li:last-child { padding-bottom: 0; }
.next-steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0; top: 0;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.78rem;
}
.next-steps-list li strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.15rem;
}

/* ===== FORM SECTION ===== */
.form-section {
  padding-top: 110px;
}

.form-card {
  background: var(--card-white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 16px rgba(47, 27, 23, 0.06);
}

.form-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.form-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.full-width { grid-column: 1 / -1; }

.form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  padding: 0.72rem 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  transition: all 0.25s ease;
  background: white;
  color: var(--text-dark);
}
.form-input::placeholder { color: #bbb; }
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-helper {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ===== SUCCESS SECTION ===== */
.success-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 1.5rem;
}

.success-card {
  background: var(--card-white);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(47, 27, 23, 0.06);
  max-width: 600px;
  width: 100%;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  font-weight: 300;
}

.success-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.success-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.success-timeline {
  background: var(--bg-warm);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.timeline-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}
.timeline-item:last-child { border-bottom: none; }

.timeline-time {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.83rem;
  min-width: 150px;
  flex-shrink: 0;
}

.timeline-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.success-support {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 1.25rem 0;
  font-style: italic;
}

/* ===== FOOTER ===== */
.assessment-footer {
  background: white;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-headline { font-size: 2rem; }
  .hero-subheadline { font-size: 0.95rem; }
  .hero-meta { gap: 1.25rem; font-size: 0.82rem; }

  .question-card { padding: 2rem 1.35rem; }
  .question-title { font-size: 1.6rem; }

  .options-grid { grid-template-columns: 1fr; gap: 0.65rem; }
  .option-card { min-height: 60px; padding: 1rem 0.85rem; }

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

  .question-nav { flex-direction: column; }
  .btn-back { order: 1; align-self: flex-start; }
  .btn-primary:not(.btn-full-width) { order: 0; width: 100%; }

  .luna-intro { flex-direction: column; align-items: center; text-align: center; }
  .luna-avatar { font-size: 2.5rem; }

  .transition-card,
  .trust-card,
  .form-card,
  .results-card { padding: 2rem 1.5rem; }

  .timeline-item { flex-direction: column; gap: 0.25rem; }
  .timeline-time { min-width: auto; }

  .next-steps-list li { padding-left: 2.2rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.7rem; }
  .question-title { font-size: 1.4rem; }
  .transition-headline,
  .trust-headline { font-size: 1.45rem; }
  .results-headline { font-size: 1.5rem; }
  .form-headline { font-size: 1.45rem; }
  .success-headline { font-size: 1.6rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.assessment-section.active {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Init guard */
.assessment-wrapper:not(.initialized) .assessment-section { display: none !important; }
.assessment-wrapper.initialized .assessment-section.active { display: block; }
