/* ==========================================================================
   心途相伴 · 官网样式
   视觉规范:深青 #0F4C4C / 暖橙 #E8833A / 墨黑 #1A2B2A / 米白 #F7F5F0
   调性:温暖、靠谱、克制、专业
   ========================================================================== */

:root {
  --teal: #0F4C4C;
  --teal-deep: #0A3A3A;
  --teal-soft: rgba(15, 76, 76, 0.08);
  --orange: #E8833A;
  --orange-deep: #D9722B;
  --ink: #1A2B2A;
  --muted: rgba(26, 43, 42, 0.68);
  --cream: #F7F5F0;
  --white: #FFFFFF;
  --line: rgba(15, 76, 76, 0.12);
  --radius: 18px;
  --shadow: 0 12px 32px rgba(15, 76, 76, 0.08);
  --shadow-lift: 0 18px 44px rgba(15, 76, 76, 0.14);
  --font: "Inter", "SF Pro Text", "Source Han Sans SC", "Noto Sans SC",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  color: var(--teal);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(15, 76, 76, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark { height: 36px; width: auto; }

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active { color: var(--teal); }

.site-nav .nav-cta {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--cream);
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: var(--teal-deep);
  color: var(--cream);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--teal);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(232, 131, 58, 0.28);
}

.btn-primary:hover { background: var(--orange-deep); }

.btn-ghost {
  border: 1.5px solid rgba(15, 76, 76, 0.35);
  color: var(--teal);
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-slogan {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.heart-dot {
  display: inline-block;
  margin-left: 10px;
  color: var(--orange);
  font-size: 0.55em;
  vertical-align: 0.28em;
  animation: beat 2.4s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.18); }
  24%      { transform: scale(1); }
}

.hero-sub {
  margin-top: 24px;
  max-width: 34em;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-blob {
  position: absolute;
  inset: 8% 6%;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  background:
    radial-gradient(120% 120% at 30% 25%, rgba(232, 131, 58, 0.16), transparent 55%),
    radial-gradient(120% 120% at 75% 80%, rgba(15, 76, 76, 0.14), transparent 60%);
  animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(1.2deg); }
}

.hero-logo {
  position: relative;
  width: min(340px, 78%);
  filter: drop-shadow(0 24px 40px rgba(15, 76, 76, 0.16));
}

/* ---------- 通用 Section ---------- */

.section { padding: 96px 0; }

.section-tint {
  background:
    linear-gradient(rgba(15, 76, 76, 0.035), rgba(15, 76, 76, 0.035)),
    var(--cream);
  border-block: 1px solid var(--line);
}

.section-head { margin-bottom: 56px; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- 关于我们 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p + p { margin-top: 18px; }

.about-text .about-note {
  padding: 18px 22px;
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: var(--white);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.about-note strong { color: var(--teal); }

.value-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
}

.value-chips li {
  padding: 26px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--teal);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  box-shadow: var(--shadow);
}

/* ---------- 服务卡片 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
}

.card-icon svg { width: 30px; height: 30px; }

.card h3 { font-size: 19px; margin-bottom: 10px; }

.card p {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 服务流程 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: step;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(15, 76, 76, 0.25) 0 8px,
    transparent 8px 16px
  );
}

.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 76, 76, 0.22);
}

.step:last-child .step-num { background: var(--orange); }

.step h3 { font-size: 18px; margin-bottom: 8px; }

.step p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 为什么选择我们 ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-item {
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.why-icon svg { width: 38px; height: 38px; }

.why-item h3 { font-size: 21px; margin-bottom: 10px; }

.why-item p { color: var(--muted); }

/* ---------- 联系我们 ---------- */

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px 64px;
  align-items: center;
  padding: 56px;
  border-radius: 24px;
  background: var(--teal);
  box-shadow: 0 24px 56px rgba(15, 76, 76, 0.24);
}

.contact-card .eyebrow { color: var(--orange); }

.contact-card h2 {
  color: var(--cream);
  font-size: clamp(24px, 3vw, 34px);
}

.contact-slogan {
  margin-top: 16px;
  color: rgba(247, 245, 240, 0.72);
  letter-spacing: 0.08em;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(247, 245, 240, 0.08);
  border: 1px solid rgba(247, 245, 240, 0.16);
}

.contact-label {
  color: rgba(247, 245, 240, 0.8);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.contact-value {
  color: var(--cream);
  font-size: 17px;
  font-weight: 600;
}

a.contact-value {
  border-bottom: 1px dashed rgba(247, 245, 240, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a.contact-value:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.contact-same {
  margin-left: 10px;
  padding: 3px 12px;
  border: 1px dashed rgba(247, 245, 240, 0.4);
  border-radius: 999px;
  color: rgba(247, 245, 240, 0.62);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 48px 0;
  background: var(--teal-deep);
  color: rgba(247, 245, 240, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-mark { height: 30px; width: auto; }

.footer-copy { font-size: 13.5px; }

.footer-copy a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-copy a:hover {
  color: var(--cream);
  border-bottom-color: rgba(247, 245, 240, 0.5);
}

.footer-slogan {
  font-size: 13.5px;
  letter-spacing: 0.12em;
  color: rgba(247, 245, 240, 0.5);
}

/* ---------- 滚动浮现动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .heart-dot, .hero-blob { animation: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps::before { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; order: -1; }
  .hero-logo { width: min(240px, 60%); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-card { grid-template-columns: 1fr; padding: 40px 32px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .container { width: min(1120px, 100% - 32px); }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(15, 76, 76, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 13px 12px;
    border-radius: 10px;
  }

  .site-nav a:hover { background: var(--teal-soft); }

  .site-nav .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero { padding: 56px 0 64px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step { text-align: left; display: grid; grid-template-columns: 54px 1fr; gap: 0 18px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .value-chips { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 32px 22px; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
