/* 北京宠智嗅健康管理有限公司 - 官网样式 */

:root {
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-muted: #5c5c5c;
  --primary: #2d6a6a;
  --primary-dark: #1f4d4d;
  --accent: #e07a5f;
  --accent-soft: rgba(224, 122, 95, 0.12);
  --border: #e8e4df;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(44, 44, 44, 0.08);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
}

.logo span {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 3rem 1.25rem 4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(250, 248, 245, 0.97) 0%,
    rgba(250, 248, 245, 0.45) 45%,
    rgba(45, 106, 106, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.hero .tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45, 106, 106, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--accent-soft);
}

/* Sections */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 720px;
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Disclaimer banner */
.disclaimer-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 1.25rem 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
}

.disclaimer-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

/* Legal box */
.legal-box {
  background: #fff9f5;
  border: 1px solid #f0d9cc;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin-top: 1rem;
}

.legal-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #a65c3a;
}

.legal-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-box li + li {
  margin-top: 0.45rem;
}

/* Media gallery */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.media-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.media-item figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 应用场景 · 图文横排 */
.subsection-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.35rem;
  color: var(--primary-dark);
}

.subsection-title:first-of-type {
  margin-top: 0;
}

.subsection-title--spaced {
  margin-top: 2.75rem;
}

.subsection-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  max-width: 720px;
}

.scene-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.35rem;
  align-items: center;
  margin-bottom: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.scene-row--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.scene-row--reverse .scene-row__figure {
  order: 2;
}

.scene-row--reverse .scene-row__body {
  order: 1;
}

.scene-row__figure {
  margin: 0;
  min-height: 200px;
  background: #eef5f5;
}

.scene-row__figure img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.scene-row__figure--tint {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d8ebea 0%, var(--primary) 85%);
  min-height: 220px;
}

.scene-row__figure--tint2 {
  background: linear-gradient(145deg, #fde8e0 0%, #e8a090 90%);
}

.scene-row__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.scene-row__figure--tint2 .scene-row__badge {
  color: #8b3d2f;
}

.scene-row__body {
  padding: 1.35rem 1.5rem 1.45rem;
}

.scene-row__title {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  color: var(--primary);
}

.scene-row__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 客户群体卡片 */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.customer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.customer-card__visual {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-card__visual--2 {
  background: linear-gradient(135deg, #c97b63 0%, #a65c3a 100%);
}

.customer-card__visual--3 {
  background: linear-gradient(135deg, #3d7d7d 0%, #2d6a6a 100%);
}

.customer-card__visual--4 {
  background: linear-gradient(135deg, #6b8f8f 0%, #4a6b6b 100%);
}

.customer-card__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--primary-dark);
}

.customer-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 成功案例 */
.section--cases {
  background: linear-gradient(180deg, #f5faf9 0%, var(--bg) 28%);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
  margin-bottom: 0.5rem;
}

.case-grid--customer {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.case-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e8f0ef;
}

.case-card__media--wide {
  aspect-ratio: 16 / 9;
}

.case-card__media--square {
  aspect-ratio: 1 / 1;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-card__tag {
  display: inline-block;
  margin: 0.85rem 1.15rem 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: rgba(45, 106, 106, 0.1);
  border-radius: 4px;
  width: fit-content;
}

.case-card__tag--accent {
  color: #a65c3a;
  background: rgba(224, 122, 95, 0.15);
}

.case-card__title {
  margin: 0.55rem 1.15rem 0;
  font-size: 1.05rem;
  color: var(--primary-dark);
  line-height: 1.35;
}

.case-card__summary,
.case-card__result {
  margin: 0.55rem 1.15rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-card__result strong {
  color: var(--text);
}

.case-card__meta {
  margin: 0.75rem 1.15rem 1.15rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  color: #888;
  line-height: 1.45;
}

/* Contact */
.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  max-width: 520px;
}

.contact-block dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-block dt {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.contact-block dd {
  margin: 0;
  font-weight: 600;
}

.about-note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  background: #f3f9f8;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
}

/* 公司团队 */
.section--team {
  background: linear-gradient(180deg, #fff 0%, #f7faf9 100%);
}

.team-disclaimer {
  margin: -0.75rem 0 1.75rem;
  max-width: 720px;
  font-size: 0.88rem;
  color: #777;
  line-height: 1.55;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-card__media {
  aspect-ratio: 16 / 9;
  background: #e8f0ef;
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__title {
  margin: 0;
  padding: 1rem 1.15rem 0.35rem;
  font-size: 1.12rem;
  color: var(--primary-dark);
}

.team-card__text {
  margin: 0;
  padding: 0 1.15rem 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 服务流程 */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.process-steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.process-steps__item:last-child {
  border-bottom: none;
}

.process-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.process-steps__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.process-steps__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  max-width: 760px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 12px rgba(44, 44, 44, 0.05);
}

.faq-item__q {
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] .faq-item__q::after {
  content: "−";
}

.faq-item__a {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid var(--border);
}

.faq-item__a p {
  margin: 0.85rem 0 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 联系 · 地图 */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.contact-block--wide {
  max-width: none;
}

.contact-map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.contact-map-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.contact-map-card__lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-map-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn--map {
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
}

/* 隐私政策单页 */
.legal-page {
  padding-bottom: 3rem;
}

.legal-page__block {
  margin-bottom: 1rem;
}

.legal-page__h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--primary-dark);
}

.legal-page__block p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-page__back {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 1.25rem 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-main {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.footer-brand__name {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.footer-brand__tag {
  margin: 0;
  line-height: 1.5;
}

.footer-contact p {
  margin: 0.35rem 0;
}

.footer-contact strong {
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.35rem;
}

.footer-legal {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.footer-legal a {
  color: var(--text-muted);
}

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

.footer-icp-link {
  color: var(--text-muted);
}

.footer-dot {
  margin: 0 0.35rem;
}

.footer-icp-hint {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.78rem;
  color: #999;
}

.footer-copy {
  text-align: center;
  margin: 0;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    width: 100%;
    order: 3;
    flex-basis: 100%;
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0 0;
  }

  .scene-row,
  .scene-row--reverse {
    grid-template-columns: 1fr;
  }

  .scene-row--reverse .scene-row__figure {
    order: 0;
  }

  .scene-row--reverse .scene-row__body {
    order: 1;
  }

  .scene-row__figure--tint {
    min-height: 160px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .nav {
    display: block !important;
  }
}
