/* 母狗园官网 — grove design system (mobile-first) */
:root {
  --grove-ink: #0c1412;
  --grove-deep: #132820;
  --grove-moss: #1f4d3f;
  --grove-leaf: #3d8b6e;
  --grove-mint: #7ec9a8;
  --grove-sand: #c9a66b;
  --grove-coral: #d4786a;
  --grove-mist: #e6f0ec;
  --grove-fog: #f3f7f5;
  --grove-glass: rgba(255, 255, 255, 0.12);
  --grove-line: rgba(126, 201, 168, 0.28);
  --grove-shadow: 0 18px 48px rgba(12, 20, 18, 0.28);
  --grove-radius: 18px;
  --grove-max: 1080px;
  --grove-nav-h: 58px;
  --grove-promo-gap: 0px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grove-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 139, 110, 0.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 166, 107, 0.18), transparent 50%),
    linear-gradient(180deg, #f7fbf9 0%, var(--grove-fog) 42%, #eef5f1 100%);
  line-height: 1.75;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--grove-moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--grove-coral);
}

.grove-skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.grove-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

/* top promo (ads) */
.grove-promo {
  background: rgba(12, 20, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(126, 201, 168, 0.2);
  padding: 8px 8px 6px;
}

.grove-promo #ads {
  max-width: var(--grove-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
  background: transparent;
}

@media (min-width: 900px) {
  .grove-promo #ads {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.grove-promo #ads > div,
.grove-promo #ads figure {
  margin: 0;
  width: 100%;
  max-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grove-promo #ads a {
  display: block;
  text-decoration: none;
  color: #d7e8df;
  text-align: center;
  width: 100%;
  max-width: 72px;
}

.grove-promo #ads img {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  display: block;
  border: none;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.grove-promo #ads img:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.grove-promo #ads .caption {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  color: #d7e8df;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* header */
.grove-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(243, 247, 245, 0.82);
  border-bottom: 1px solid rgba(19, 40, 32, 0.08);
}

.grove-topbar-inner {
  max-width: var(--grove-max);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--grove-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grove-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--grove-ink);
}

.grove-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(31, 77, 63, 0.25);
}

.grove-brand span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.grove-burger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--grove-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.grove-burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--grove-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.grove-burger.is-open i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.grove-burger.is-open i:nth-child(2) {
  opacity: 0;
}

.grove-burger.is-open i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.grove-nav {
  position: fixed;
  inset: calc(var(--grove-nav-h) + var(--grove-promo-gap)) 12px auto 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--grove-line);
  border-radius: 16px;
  box-shadow: var(--grove-shadow);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 85;
}

.grove-nav.is-open {
  display: flex;
}

.grove-nav a {
  text-decoration: none;
  color: var(--grove-ink);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
}

.grove-nav a:hover,
.grove-nav a.is-active {
  background: linear-gradient(90deg, rgba(61, 139, 110, 0.12), transparent);
  color: var(--grove-moss);
}

@media (min-width: 880px) {
  .grove-burger {
    display: none;
  }

  .grove-nav {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 2px;
  }

  .grove-nav a {
    padding: 8px 12px;
    font-size: 0.92rem;
  }
}

/* sticky download rail */
.grove-rail {
  position: sticky;
  top: var(--grove-nav-h);
  z-index: 70;
  background: rgba(12, 20, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(126, 201, 168, 0.2);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  padding: 8px 8px 6px;
}

.grove-rail.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.grove-rail-grid {
  max-width: var(--grove-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}

@media (min-width: 900px) {
  .grove-rail-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.grove-rail-grid a {
  text-decoration: none;
  color: #d7e8df;
  text-align: center;
  width: 100%;
  max-width: 72px;
}

.grove-rail-grid img {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.grove-rail-grid span {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* layout shells */
.grove-wrap {
  max-width: var(--grove-max);
  margin: 0 auto;
  padding: 0 16px;
}

.grove-crumb {
  max-width: var(--grove-max);
  margin: 18px auto 0;
  padding: 0 16px;
  font-size: 0.86rem;
  color: #5a6f66;
}

.grove-crumb a {
  color: #5a6f66;
  text-decoration: none;
}

.grove-crumb a:hover {
  color: var(--grove-coral);
}

.grove-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* hero — full bleed, brand first */
.grove-hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4faf7;
  background:
    linear-gradient(180deg, rgba(12, 20, 18, 0.25) 0%, rgba(12, 20, 18, 0.78) 58%, rgba(12, 20, 18, 0.94) 100%),
    url("catalog-hot.jpg") center / cover no-repeat;
}

.grove-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(126, 201, 168, 0.28), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(212, 120, 106, 0.18), transparent 35%);
  pointer-events: none;
  animation: grovePulse 9s ease-in-out infinite alternate;
}

.grove-hero::after {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -30%;
  width: 70%;
  height: 60%;
  background: radial-gradient(circle, rgba(61, 139, 110, 0.35), transparent 65%);
  filter: blur(8px);
  animation: groveDrift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes grovePulse {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

@keyframes groveDrift {
  from { transform: translateX(0) scale(1); }
  to { transform: translateX(12%) scale(1.08); }
}

.grove-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--grove-max);
  margin: 0 auto;
  padding: 48px 16px 56px;
}

.grove-hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  animation: groveRise 0.9s ease both;
}

.grove-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.6vw, 1.95rem);
  font-weight: 400;
  margin: 0 0 12px;
  max-width: 18em;
  line-height: 1.35;
  animation: groveRise 1s ease 0.12s both;
}

.grove-hero p {
  margin: 0 0 22px;
  max-width: 28em;
  color: rgba(244, 250, 247, 0.88);
  font-size: 0.98rem;
  animation: groveRise 1.05s ease 0.22s both;
}

.grove-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: groveRise 1.1s ease 0.32s both;
}

.grove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.grove-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.grove-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.grove-btn-solid {
  background: linear-gradient(135deg, var(--grove-leaf), var(--grove-moss));
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 77, 63, 0.35);
}

.grove-btn-solid:hover {
  color: #fff;
  box-shadow: 0 14px 28px rgba(31, 77, 63, 0.45);
}

.grove-btn-warm {
  background: linear-gradient(135deg, #d4786a, #c9a66b);
  color: #fff;
  box-shadow: 0 10px 24px rgba(212, 120, 106, 0.3);
}

.grove-btn-warm:hover {
  color: #fff;
}

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

/* sections */
.grove-section {
  padding: 42px 0;
}

.grove-section-alt {
  background: linear-gradient(180deg, rgba(31, 77, 63, 0.05), transparent 70%);
}

.grove-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grove-leaf);
  margin-bottom: 8px;
}

.grove-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  margin: 0 0 12px;
  color: var(--grove-deep);
  line-height: 1.35;
}

.grove-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--grove-moss);
}

.grove-lead,
.grove-prose p {
  margin: 0 0 14px;
  color: #2a3b34;
}

.grove-prose p {
  text-align: justify;
}

/* split / media */
.grove-split {
  display: grid;
  gap: 22px;
  align-items: center;
}

@media (min-width: 820px) {
  .grove-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }

  .grove-split.is-flip > :first-child {
    order: 2;
  }
}

.grove-shot {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--grove-shadow);
  background: #12241c;
}

.grove-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 560px;
}

.grove-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  pointer-events: none;
}

.grove-glass {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--grove-radius);
  padding: 20px 18px;
  box-shadow: 0 12px 32px rgba(19, 40, 32, 0.08);
}

/* cards */
.grove-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 700px) {
  .grove-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .grove-cards.is-triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grove-card {
  background: #fff;
  border: 1px solid rgba(19, 40, 32, 0.08);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(19, 40, 32, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.grove-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(19, 40, 32, 0.1);
}

.grove-card h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.grove-card p {
  margin: 0;
  color: #3a4d45;
  font-size: 0.94rem;
}

.grove-card-media {
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 12px;
}

.grove-card-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

/* timeline / list */
.grove-steps {
  counter-reset: grove-step;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.grove-steps li {
  position: relative;
  padding: 14px 14px 14px 58px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  border: 1px solid rgba(19, 40, 32, 0.06);
}

.grove-steps li::before {
  counter-increment: grove-step;
  content: counter(grove-step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--grove-mint), var(--grove-leaf));
  color: #0c1412;
  font-weight: 700;
  font-size: 0.85rem;
}

/* mosaic */
.grove-mosaic {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 800px) {
  .grove-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.grove-mosaic figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #12241c;
  box-shadow: 0 10px 28px rgba(19, 40, 32, 0.12);
}

.grove-mosaic img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s ease;
}

.grove-mosaic figure:hover img {
  transform: scale(1.05);
}

.grove-mosaic figcaption {
  padding: 8px 10px 10px;
  font-size: 0.78rem;
  color: #d7e8df;
  background: #12241c;
}

/* quote band */
.grove-quote {
  margin: 0;
  padding: 28px 22px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(31, 77, 63, 0.92), rgba(19, 40, 32, 0.95)),
    var(--grove-deep);
  color: #eef8f3;
  box-shadow: var(--grove-shadow);
}

.grove-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  line-height: 1.55;
}

.grove-quote footer {
  margin-top: 12px;
  opacity: 0.75;
  font-size: 0.86rem;
}

/* cta band */
.grove-cta {
  text-align: center;
  padding: 36px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(201, 166, 107, 0.25), transparent 45%),
    linear-gradient(145deg, #16352a, #0f221b);
  color: #f4faf7;
}

.grove-cta h2 {
  color: #f4faf7;
  margin-bottom: 8px;
}

.grove-cta p {
  margin: 0 auto 18px;
  max-width: 34em;
  color: rgba(244, 250, 247, 0.86);
}

.grove-cta .grove-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* legal pages */
.grove-legal {
  padding: 28px 0 56px;
}

.grove-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  margin: 0 0 8px;
  color: var(--grove-deep);
}

.grove-legal .grove-meta {
  color: #6a7d74;
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.grove-legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 28px 0 10px;
  color: var(--grove-moss);
}

.grove-legal p,
.grove-legal li {
  color: #2a3b34;
}

.grove-legal ul {
  padding-left: 1.2em;
}

/* error pages */
.grove-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.grove-error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--grove-leaf), var(--grove-sand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.grove-error h1 {
  font-family: var(--font-display);
  margin: 8px 0 12px;
}

/* footer */
.grove-footer {
  margin-top: 24px;
  background: #0e1915;
  color: #c7d9d0;
  padding: 36px 0 28px;
}

.grove-footer a {
  color: #d7e8df;
  text-decoration: none;
}

.grove-footer a:hover {
  color: var(--grove-sand);
}

.grove-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.grove-footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.grove-footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #f4faf7;
  font-weight: 400;
}

.grove-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.grove-footer p {
  margin: 0;
  font-size: 0.86rem;
  color: #8ea79b;
}

.grove-footer .grove-copy {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(126, 201, 168, 0.15);
}

/* utility */
.grove-center {
  text-align: center;
}

.grove-mb {
  margin-bottom: 18px;
}

.grove-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(126, 201, 168, 0.15);
  color: var(--grove-moss);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.grove-tagline::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grove-coral);
  box-shadow: 0 0 0 4px rgba(212, 120, 106, 0.2);
  animation: groveBlink 2.4s ease-in-out infinite;
}

@keyframes groveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

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