/* ========================================
   本地服务商 AI 询盘转化系统 — 销售落地页
   风格：专业 · 清晰 · 适合本地服务商老板
   ======================================== */

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 容器 ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8ecf1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a56db;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  color: #4a5568;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #1a56db;
}

.nav-cta {
  display: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-primary {
  background: #e8751a;
  color: #fff;
  border-color: #e8751a;
}

.btn-primary:hover {
  background: #d06815;
  box-shadow: 0 4px 14px rgba(232, 117, 26, 0.3);
}

.btn-outline {
  background: #fff;
  color: #1a56db;
  border-color: #1a56db;
}

.btn-outline:hover {
  background: #f0f4ff;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.12);
}

.btn-full {
  width: 100%;
}

/* ---------- 首屏 ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.4;
  color: #111827;
  max-width: 780px;
  margin: 0 auto 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 桌面/移动端标题切换 */
.title-desktop {
  display: block;
}

.title-mobile {
  display: none;
}

.text-highlight {
  color: #1a56db;
  background: linear-gradient(180deg, transparent 60%, #dbeafe 60%);
  padding: 0 4px;
}

.hero-sub {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-sub-mobile {
  display: none;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #f8fafb;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: #111827;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-desc {
  text-align: center;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---------- 痛点区 ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pain-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.pain-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.pain-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ---------- 解决方案区 ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.solution-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a56db;
  background: #eff6ff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.solution-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.solution-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ---------- 行业 ---------- */
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.industry-tag {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  transition: border-color 0.15s, background 0.15s;
}

.industry-tag:hover {
  border-color: #1a56db;
  background: #f0f4ff;
}

.industries-note {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- 套餐区 ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  padding: 32px 24px;
  position: relative;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pricing-card-featured {
  border-color: #1a56db;
  box-shadow: 0 8px 30px rgba(26, 86, 219, 0.1);
  transform: scale(1.03);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pricing-badge-featured {
  background: #1a56db;
  color: #fff;
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.pricing-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e8751a;
  margin-bottom: 6px;
}

.pricing-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
}

.pricing-fit {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.5;
}

.pricing-list {
  list-style: none;
  margin-bottom: 20px;
}

.pricing-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.pricing-list li::before {
  content: "✓ ";
  color: #059669;
  font-weight: 700;
}

.pricing-period {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.pricing-result {
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: #f8fafb;
  border-radius: 8px;
  line-height: 1.5;
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 32px;
}

/* ---------- 案例区 ---------- */
.case-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.case-box {
  border-radius: 14px;
  padding: 28px 24px;
}

.case-before {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.case-after {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.case-label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.case-scenario {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.case-scenario p {
  margin-bottom: 6px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.case-problem,
.case-solution {
  font-size: 0.85rem;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.6;
}

.case-problem {
  background: #fee2e2;
  color: #991b1b;
}

.case-solution {
  background: #dcfce7;
  color: #166534;
}

/* ---------- 流程区 ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.process-step {
  text-align: center;
  padding: 20px 12px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a56db;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.process-step h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.process-step p {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e8ecf1;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: #111827;
  gap: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.faq-question span:first-child {
  min-width: 0;
}

.faq-question:hover {
  color: #1a56db;
}

.faq-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s;
  flex-shrink: 0;
  color: #9ca3af;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: #1a56db;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 18px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.7;
}

/* ---------- CTA 底部 ---------- */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.cta-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1rem;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-note {
  font-size: 0.8rem;
  color: #d97706;
}

/* ---------- 底部 ---------- */
.footer {
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid #e8ecf1;
}

.footer p {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ========================================
   响应式 — 平板
   ======================================== */
@media (max-width: 900px) {
  .pain-grid,
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
  }

  .case-comparison {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title {
    font-size: 1.7rem;
    max-width: 100%;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }
}

/* ========================================
   响应式 — 手机
   ======================================== */
@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    min-width: 0;
  }

  .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 0;
    margin-right: 0;
  }

  body,
  p,
  li,
  h1,
  h2,
  h3,
  .btn,
  .section-desc,
  .pain-card,
  .solution-card,
  .pricing-card,
  .case-scenario,
    .faq-answer {
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
    max-width: 100%;
    min-width: 0;
  }

  .pain-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-title {
    font-size: 1.15rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 手机端切换为短标题 */
  .title-desktop {
    display: none;
  }

  .title-mobile {
    display: block;
  }

  /* 高亮文字在手机端确保换行 */
  .text-highlight {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-sub {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-height: 1.8;
  }

  .hero-sub-desktop {
    display: none;
  }

  .hero-sub-mobile {
    display: block;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.35rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .section-desc {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
    line-height: 1.8;
    word-break: break-all;
  }

  .pain-card p,
  .solution-card p,
  .pricing-fit,
  .pricing-list li,
  .pricing-result,
  .case-scenario,
  .case-scenario p,
  .case-problem,
  .case-solution,
  .process-step p,
  .faq-answer p {
    max-width: 100%;
    font-size: 0.86rem;
    line-height: 1.75;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 0.95rem;
    display: block;
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .pricing-grid {
    max-width: 100%;
  }

  .pricing-card {
    padding: 24px 16px;
  }

  .pricing-price {
    font-size: 1.35rem;
  }

  .industry-grid {
    gap: 10px;
  }

  .industry-tag {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .nav-inner {
    height: 52px;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .nav-cta {
    display: none !important;
  }

  .case-box {
    padding: 20px 16px;
  }

  .case-comparison {
    gap: 20px;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .container {
    padding: 0 16px;
  }
}
