/* 茉莉心语 - 设计系统 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

:root {
  /* 配色方案 - 参考一见倾心设计 */
  --primary: #3D5A4C;        /* 森林绿 */
  --primary-light: #5A7A6A;
  --primary-dark: #2D4A3C;
  --warm: #F8F5F2;           /* 温暖米色背景 */
  --warm-dark: #EBE5E0;
  --dark: #333333;            /* 深灰文字 */
  --accent: #E8A356;          /* 琥珀色强调 */
  --accent-light: #F0C494;
  --urgent: #C75D5D;
  --muted: #666666;
  --text-light: #999999;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(61, 90, 76, 0.06);
  --shadow-md: 0 4px 16px rgba(61, 90, 76, 0.08);
  --shadow-lg: 0 8px 32px rgba(61, 90, 76, 0.12);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--warm);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  line-height: 1.3;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--dark);
}

.navbar-logo {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo svg {
  width: 20px;
  height: 20px;
  color: white;
}

.navbar-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.navbar-logo-img {
  height: 55px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wechat-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.2s;
}

.wechat-btn:hover {
  background: var(--primary);
  color: white;
}

/* 预约按钮 */
.btn-booking {
  background: var(--primary);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-booking:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hero 区 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--warm);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(61, 90, 76, 0.03) 100%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--accent);
  opacity: 0.1;
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* 服务入口卡片 */
.entry-section {
  padding: 5rem 0;
  background: white;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.entry-card {
  background: var(--warm);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.entry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.entry-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.entry-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.entry-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.entry-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* 咨询师卡片 */
.counselors-section {
  padding: 5rem 0;
  background: var(--warm);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.section-header p {
  color: var(--muted);
}

.counselors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.counselor-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.counselor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.counselor-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid var(--warm);
}

.counselor-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.counselor-title {
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.counselor-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--warm);
  color: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.counselor-rating {
  color: var(--accent);
  font-weight: 500;
}

.counselor-price {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* CTA 区 */
.cta-section {
  padding: 5rem 0;
  background: var(--primary);
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.cta-section .btn-outline {
  border-color: white;
  color: white;
}

.cta-section .btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* Footer */
.footer {
  background: white;
  padding: 3rem 0;
  border-top: 1px solid var(--warm-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark);
}

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

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copy {
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-filing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: none;
}

.filing-icon {
  height: 20px;
  width: auto;
}

.filing-text {
  color: var(--text-light);
  font-size: 0.8125rem;
}

.filing-text a {
  color: var(--text-light);
  text-decoration: none;
}

.filing-text a:hover {
  color: var(--primary);
}

/* 步骤指示器 */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  background: #e5e7eb;
  color: var(--text-light);
}

.step.active .step-circle {
  background: var(--primary);
  color: white;
}

.step.completed .step-circle {
  background: var(--primary-light);
  color: white;
}

.step-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 500;
}

.step-line {
  width: 40px;
  height: 2px;
  background: #e5e7eb;
}

/* 表单 */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: var(--urgent);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 90, 76, 0.1);
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: white;
  cursor: pointer;
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
}

/* 复选框组 */
.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-item:hover,
.radio-item:hover {
  border-color: var(--primary);
}

.checkbox-item.selected,
.radio-item.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* 量表卡片 */
.scale-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.scale-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.scale-card h4 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.scale-card p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.scale-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.75rem;
}

/* 选项按钮 */
.option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
  background: white;
}

.option-btn:hover {
  border-color: var(--primary);
  background: rgba(61, 90, 76, 0.02);
}

.option-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.option-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  flex-shrink: 0;
  color: var(--primary);
}

.option-btn.selected .option-num {
  background: white;
  color: var(--primary);
}

/* 进度条 */
.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* 结果展示 */
.result-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.result-score {
  text-align: center;
  padding: 2rem;
  background: var(--warm);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.result-score .number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Noto Serif SC', serif;
}

.result-score .label {
  color: var(--muted);
}

.result-level {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 500;
  margin-bottom: 1rem;
}

.result-level.warning {
  background: var(--accent);
}

.result-level.danger {
  background: var(--urgent);
}

/* 紧急弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #FEF2F2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
  color: var(--urgent);
}

/* 加载状态 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--warm);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image {
    order: -1;
  }

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

  .navbar-links {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .steps {
    flex-wrap: wrap;
  }
}
