/* 母狗园 — orchard dusk theme */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@600;700&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #1c2520;
  --ink-soft: #3a4a42;
  --mist: #f3f7f2;
  --petal: #e8f0e9;
  --berry: #c23b5a;
  --berry-deep: #8f2740;
  --sage: #3f6f5c;
  --sage-light: #6fa88a;
  --gold: #c9a06a;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 40px rgba(28, 37, 32, 0.12);
  --radius: 18px;
  --max: 1080px;
  --nav-h: 58px;
  --font-brand: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-display: "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe8df 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #dff3e8 0%, transparent 50%),
    linear-gradient(180deg, #f7faf6 0%, #eef5ef 40%, #f8f4ef 100%);
  line-height: 1.75;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--berry);
}

.grove-shell {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

/* top promo dock */
.promo-dock {
  padding: 10px 0 4px;
  border-bottom: 1px solid rgba(63, 111, 92, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.25));
  backdrop-filter: blur(10px);
}

.promo-dock #ads,
.sticky-dl #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 6px;
  background: transparent;
  margin: 6px 0;
}

.promo-dock #ads > div,
.sticky-dl #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

.promo-dock #ads img,
.sticky-dl #ads-sticky img {
  width: 65px;
  height: 65px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 14px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  background: #fff;
}

.promo-dock #ads a,
.sticky-dl #ads-sticky a {
  display: inline-block;
  width: 65px;
  height: 65px;
  overflow: hidden;
  text-decoration: none;
  border-radius: 14px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 14px;
}

.promo-dock #ads img:hover,
.sticky-dl #ads-sticky img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.promo-dock .caption,
.sticky-dl .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* nav */
.petal-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 246, 0.82);
  border-bottom: 1px solid rgba(63, 111, 92, 0.14);
}

.petal-nav .grove-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 28px, var(--max));
}

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

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-mark span {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: none;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-on {
  color: var(--berry);
}

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

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

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

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 39;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(63, 111, 92, 0.15);
  padding: 12px 18px 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dashed rgba(63, 111, 92, 0.15);
  font-weight: 500;
}

/* sticky download strip */
.sticky-dl {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 35;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63, 111, 92, 0.12);
  padding: 6px 8px;
  max-height: 42vh;
  overflow-y: auto;
}

.sticky-dl.is-shown {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-dl #ads-sticky > div {
  width: 25%;
  max-width: 80px;
}

@media (min-width: 900px) {
  .sticky-dl #ads-sticky > div {
    width: 12.5%;
  }
  .nav-links {
    display: flex;
  }
  .burger {
    display: none;
  }
}

body.has-sticky {
  padding-top: 0;
}

/* hero — full bleed, no download CTA */
.orchard-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 28px;
}

.orchard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 37, 32, 0.15) 0%, rgba(28, 37, 32, 0.55) 55%, rgba(28, 37, 32, 0.82) 100%),
    url("catalog-hot.jpg") center/cover no-repeat;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.orchard-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(243, 247, 242, 0.95));
}

@keyframes drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.1) translateY(-2%); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 48px 0 36px;
  color: #fff;
  max-width: 720px;
}

.hero-copy .brand-signal {
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 12px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  animation: rise 0.9s ease both;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.8vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 12px;
  color: #ffe9df;
  animation: rise 0.9s 0.12s ease both;
}

.hero-copy p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34em;
  animation: rise 0.9s 0.22s ease both;
}

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

/* crumbs */
.crumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}

.crumb-trail a {
  text-decoration: none;
  color: var(--sage);
}

.crumb-trail span {
  opacity: 0.45;
}

/* sections */
.mist-block {
  margin: 34px 0;
  padding: 8px 0;
}

.mist-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin: 0 0 12px;
  color: var(--ink);
  position: relative;
  display: inline-block;
}

.mist-block h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 42%;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--berry), var(--sage-light));
}

.mist-block h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 22px 0 8px;
  color: var(--sage);
}

.mist-block p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.lead-note {
  font-size: 1.05rem;
  color: var(--ink);
}

/* layouts */
.split-frame {
  display: grid;
  gap: 20px;
  align-items: center;
  margin: 22px 0;
}

.split-frame.reverse .frame-media {
  order: -1;
}

@media (min-width: 860px) {
  .split-frame {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
  }
  .split-frame.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .split-frame.reverse .frame-media {
    order: 0;
  }
  .split-frame.reverse .frame-copy {
    order: 0;
  }
}

.frame-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.frame-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

.frame-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(194, 59, 90, 0.08), transparent 40%);
}

.bloom-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0 8px;
}

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

@media (min-width: 980px) {
  .bloom-grid.tri {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bloom-card {
  background: var(--glass-strong);
  border: 1px solid rgba(63, 111, 92, 0.12);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(28, 37, 32, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.bloom-card h3 {
  margin-top: 0;
}

.bloom-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 12px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  max-height: 360px;
}

.soft-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(232, 240, 233, 0.7));
  border: 1px solid rgba(63, 111, 92, 0.12);
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 8px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--berry), var(--berry-deep));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(194, 59, 90, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(194, 59, 90, 0.35);
}

.cta-ghost {
  background: transparent;
  color: var(--sage) !important;
  border: 1.5px solid rgba(63, 111, 92, 0.35);
  box-shadow: none;
}

.quote-strip {
  margin: 28px 0;
  padding: 22px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 18px 18px 0;
  font-family: var(--font-display);
  color: var(--ink);
}

.mosaic-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin: 16px 0;
}

.mosaic-row img {
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  max-height: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .mosaic-row.wide {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

/* legal / about */
.legal-body h2 {
  margin-top: 28px;
}

.legal-body ul {
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.legal-body li {
  margin-bottom: 8px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 8px 0 16px;
}

/* error pages */
.error-stage {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-stage .code {
  font-family: var(--font-brand);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--berry), var(--sage));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.error-stage p {
  max-width: 28em;
  margin: 12px auto 22px;
  color: var(--ink-soft);
}

/* footer */
.site-foot {
  margin-top: 48px;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(63, 111, 92, 0.14);
  background: linear-gradient(180deg, transparent, rgba(63, 111, 92, 0.06));
}

.site-foot .foot-brand {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.foot-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.foot-nav a:hover {
  color: var(--berry);
}

.foot-copy {
  font-size: 0.82rem;
  color: #6a7a72;
  margin: 0;
}

/* motion extras */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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