:root {
  --pink: #f25587;
  --pink-hot: #ff6b9d;
  --pink-soft: #ffe4ee;
  --pink-mist: rgba(242, 85, 135, 0.12);
  --cream: #fff7f2;
  --cream-deep: #ffe8dc;
  --brown: #5a3d36;
  --brown-soft: #8a6a62;
  --brown-muted: #a89088;
  --white: #ffffff;
  --line: rgba(90, 61, 54, 0.08);
  --shadow: 0 18px 48px rgba(90, 61, 54, 0.12);
  --shadow-phone: 0 24px 60px rgba(90, 61, 54, 0.22);
  --page-max: 1180px;
  --nav-h: 72px;
  --font-display: "Fredoka", "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-phone: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown);
  background: var(--cream);
  min-height: 100vh;
}

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

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

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== Hero（参考牵手：全幅背景插画 + 品牌文案 + 单张 App 样图） ========== */
.hero {
  position: relative;
  height: 850px;
  overflow: hidden;
  color: var(--brown);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(270deg, rgba(255, 236, 224, 0.55) 0%, rgba(255, 236, 224, 0.18) 42%, transparent 68%),
    url("../assets/hero-bg.jpg") left center / cover no-repeat;
  background-color: #ffd7c4;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-top: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brown);
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  /* box-shadow: 0 6px 16px rgba(90, 61, 54, 0.12); */
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__love {
  color: var(--pink);
}

.hero-nav {
  display: flex;
  gap: 28px;
}

.hero-nav a {
  color: var(--brown-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.hero-nav a:hover {
  color: var(--pink);
}

.hero__body {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding: 24px 28px 48px;
  height: calc(850px - var(--nav-h));
}

.hero__copy {
  text-align: right;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  animation: fade-up 0.8s ease both;
}

.hero__title span {
  color: var(--pink);
}

.hero__tagline {
  margin-top: 14px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--brown);
  animation: fade-up 0.8s ease 0.1s both;
}

.hero__desc {
  margin-top: 18px;
  margin-left: auto;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--brown-soft);
  animation: fade-up 0.8s ease 0.18s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 36px;
  animation: fade-up 0.8s ease 0.26s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn--store {
  background: var(--brown);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(90, 61, 54, 0.22);
  min-width: 188px;
}

.btn--store:hover {
  background: #4a322c;
  box-shadow: 0 14px 32px rgba(90, 61, 54, 0.28);
}

.btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero__phones {
  position: relative;
  height: 100%;
  max-height: 700px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-up 1s ease 0.2s both;
}

.phone {
  background: #1c1412;
  border-radius: calc(var(--radius-phone) + 8px);
  padding: 10px;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-phone);
  background: #fff;
}

.phone--front {
  width: min(280px, 42vw);
  aspect-ratio: 9 / 19.2;
  position: relative;
  z-index: 2;
  animation: phone-float 5.5s ease-in-out infinite;
}

.phone--solo {
  width: min(280px, 70vw);
  aspect-ratio: 9 / 19.2;
  margin: 0 auto;
}

.photo-frame {
  width: min(360px, 86%);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========== Sections ========== */
.section {
  padding: 96px 0;
}

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

.section-head--left {
  text-align: left;
  margin-bottom: 24px;
}

.section-head--light {
  color: var(--white);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-head p {
  margin-top: 14px;
  color: var(--brown-soft);
  font-size: 1.05rem;
}

.section-head--light p {
  color: rgba(255, 255, 255, 0.86);
}

.section-head__rule {
  display: block;
  width: 72px;
  height: 6px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: var(--pink);
}

.section-head--left .section-head__rule {
  margin-left: 0;
}

/* Features alternating rows */
.features {
  background: var(--white);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 360px;
  margin-bottom: 72px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse .feature-row__text {
  order: 2;
}

.feature-row--reverse .feature-row__media {
  order: 1;
}

.feature-row__text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 16px;
}

.feature-row__text p {
  font-size: 1.15rem;
  color: var(--brown-soft);
  line-height: 1.8;
}

.feature-row__text p + p {
  margin-top: 6px;
}

.feature-row__media {
  display: flex;
  justify-content: center;
}

/* Journey */
.journey {
  background:
    linear-gradient(135deg, #f25587 0%, #ff8fb5 48%, #ffb4a2 100%);
  color: var(--white);
}

.journey-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.journey-list li {
  text-align: center;
  padding: 28px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s, background 0.25s;
}

.journey-list li:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.24);
}

.journey-list__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.journey-list__icon--heart::before { content: "♥"; }
.journey-list__icon--paw::before { content: "🐾"; font-size: 0.95rem; }
.journey-list__icon--home::before { content: "⌂"; font-size: 1.25rem; }
.journey-list__icon--sprout::before { content: "✿"; }

.journey-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.journey-list span:last-child {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Showcase pet cards — interaction containers */
.showcase {
  background: var(--cream);
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.pet-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding-bottom: 22px;
  transition: transform 0.25s;
}

.pet-card:hover {
  transform: translateY(-6px);
}

.pet-card__photo {
  height: 220px;
  overflow: hidden;
  background: var(--cream-deep);
}

.pet-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pet-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  padding: 18px 20px 0;
}

.pet-card h3 span,
.pet-gender {
  color: var(--pink);
  font-size: 1rem;
}

.pet-gender--male {
  color: #4a90e2 !important;
}

.pet-card__meta {
  padding: 6px 20px 0;
  color: var(--brown-muted);
  font-size: 0.92rem;
}

.pet-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px 0;
}

.pet-card__tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 700;
}

.pet-card__wish {
  padding: 14px 20px 0;
  color: var(--brown-soft);
  font-size: 0.92rem;
}

/* About */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about__copy p {
  color: var(--brown-soft);
  font-size: 1.05rem;
  max-width: 36rem;
}

.about__copy p + p {
  margin-top: 14px;
}

.about__info {
  background: var(--cream);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 28px;
}

.about__info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.about__info dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.about__info dl > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about__info dt {
  color: var(--brown-muted);
  font-size: 0.9rem;
}

.about__info dd {
  font-size: 0.98rem;
  font-weight: 600;
}

/* Contact */
.contact {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, var(--pink-mist), transparent 70%),
    var(--cream);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

a.contact-item:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 85, 135, 0.35);
}

.contact-item__label {
  font-size: 0.85rem;
  color: var(--brown-muted);
  font-weight: 700;
}

.contact-item__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  word-break: break-all;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  font-size: 12px;
  color: var(--brown-muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}

.beian-link:hover {
  color: var(--pink);
}

.beian-icon {
  height: 16px;
  width: auto;
}

.footer-divider {
  color: #ddd0cb;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-nav {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 850px;
  }

  .hero__body {
    grid-template-columns: 1fr;
    height: auto;
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__phones {
    height: auto;
    min-height: 420px;
    order: -1;
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
    margin-bottom: 64px;
  }

  .feature-row--reverse .feature-row__text,
  .feature-row--reverse .feature-row__media {
    order: initial;
  }

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

  .pet-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
    margin: 0 auto;
  }

  .pet-grid .pet-card:last-child {
    grid-column: 1 / -1;
    max-width: 280px;
    justify-self: center;
    width: 100%;
  }

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

  .about__info dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-list {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero__phones {
    min-height: 360px;
  }

  .phone--front {
    width: min(220px, 58vw);
  }

  .pet-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .pet-grid .pet-card:last-child {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
