@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #0e1419;
  --ink-soft: #172029;
  --panel: rgba(28, 38, 48, 0.72);
  --panel-solid: #1c2630;
  --line: rgba(255, 214, 180, 0.16);
  --apricot: #ff9f6b;
  --apricot-deep: #e87845;
  --seafoam: #7dd3c7;
  --sand: #f5efe6;
  --muted: #b7c0c8;
  --danger: #ff6b7a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-brand: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
  --max: 1080px;
  --nav-h: 64px;
  --promo-gap: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--sand);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 159, 107, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 8%, rgba(125, 211, 199, 0.14), transparent 50%),
    linear-gradient(180deg, #0b1015 0%, var(--ink) 40%, #101820 100%);
  min-height: 100vh;
  line-height: 1.85;
  font-size: 15px;
  overflow-x: hidden;
}

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

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

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

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

/* promo strip */
.grove-promo {
  background: rgba(10, 14, 18, 0.88);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
  backdrop-filter: blur(12px);
}

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

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

.grove-promo #ads img,
.grove-rail #ads-rail img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #fff;
  display: block;
}

.grove-promo #ads a,
.grove-rail #ads-rail a {
  display: inline-block;
  text-decoration: none;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.grove-promo #ads img:hover,
.grove-rail #ads-rail img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.35);
}

.grove-promo .caption,
.grove-rail .caption {
  height: 15px;
  font-size: 11px;
  color: #9aa3ab;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* header */
.grove-top {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 20, 25, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
}

.grove-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

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

.grove-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 159, 107, 0.35);
}

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

.grove-burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  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(--sand);
  border-radius: 2px;
  transition: 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(--nav-h) + var(--promo-gap)) 12px auto 12px;
  background: rgba(18, 26, 34, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
  z-index: 90;
}

.grove-nav.is-open {
  display: flex;
  animation: groveDrop 0.28s ease;
}

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

.grove-nav a:hover,
.grove-nav a.is-active {
  background: rgba(255, 159, 107, 0.12);
  color: var(--apricot);
}

@keyframes groveDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 900px) {
  .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(--nav-h);
  z-index: 70;
  background: rgba(12, 18, 24, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 4px;
  backdrop-filter: blur(14px);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
}

.grove-rail.is-show {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.grove-rail #ads-rail {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.grove-rail #ads-rail > div {
  width: 25%;
  max-width: 88px;
}

@media (min-width: 768px) {
  .grove-rail #ads-rail > div {
    width: 12.5%;
  }
}

/* hero */
.grove-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  padding: 48px 0 56px;
  overflow: hidden;
}

.grove-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 10%, rgba(14, 20, 25, 0.35) 45%, rgba(14, 20, 25, 0.92) 100%),
    url("catalog-hot.jpg") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.04);
  animation: groveDrift 18s ease-in-out infinite alternate;
}

.grove-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 20% 30%, rgba(255, 159, 107, 0.22), transparent 60%),
    radial-gradient(500px 280px at 80% 20%, rgba(125, 211, 199, 0.16), transparent 55%);
  pointer-events: none;
}

@keyframes groveDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-12px);
  }
}

.grove-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: groveRise 0.8s ease both;
}

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

.grove-kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seafoam);
  margin-bottom: 12px;
}

.grove-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 400;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.grove-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36em;
}

/* breadcrumb */
.grove-crumb {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.grove-crumb a {
  color: var(--muted);
  text-decoration: none;
}

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

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

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

.grove-section h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.35;
}

.grove-section h3 {
  font-size: 1.12rem;
  margin: 28px 0 10px;
  color: var(--apricot);
  font-weight: 700;
}

.grove-lead {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 48em;
}

.grove-prose p {
  margin: 0 0 1em;
  color: #d7dde3;
}

.grove-prose p:last-child {
  margin-bottom: 0;
}

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

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

  .grove-split--flip {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .grove-split--flip .grove-media {
    order: -1;
  }
}

.grove-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel-solid);
}

.grove-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(8, 12, 16, 0.55));
  pointer-events: none;
}

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

.grove-media--wide img {
  aspect-ratio: 16 / 10;
  max-height: 380px;
  object-position: center;
}

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

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

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

.grove-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.grove-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 159, 107, 0.35);
}

.grove-card h3 {
  margin-top: 0;
  color: var(--sand);
}

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

.grove-card--media {
  padding: 0;
  overflow: hidden;
}

.grove-card--media img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  max-height: 340px;
}

.grove-card--media .grove-card__body {
  padding: 14px 16px 16px;
}

/* ribbon band */
.grove-band {
  margin: 18px 0;
  padding: 26px 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 159, 107, 0.16), rgba(125, 211, 199, 0.08)),
    rgba(24, 34, 44, 0.85);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.grove-band::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(255, 159, 107, 0.35), transparent 70%);
  animation: grovePulse 4.5s ease-in-out infinite;
}

@keyframes grovePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.grove-band > * {
  position: relative;
  z-index: 1;
}

.grove-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--apricot), var(--apricot-deep));
  color: #1a120e;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 159, 107, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grove-cta:hover {
  color: #1a120e;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 159, 107, 0.38);
}

.grove-list {
  margin: 0;
  padding-left: 1.2em;
  color: #d7dde3;
}

.grove-list li {
  margin-bottom: 0.55em;
}

/* mosaic */
.grove-mosaic {
  display: grid;
  gap: 12px;
}

@media (min-width: 760px) {
  .grove-mosaic {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }

  .grove-mosaic .grove-media:first-child {
    grid-row: span 2;
  }
}

/* timeline */
.grove-steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.grove-step {
  position: relative;
  padding: 16px 16px 16px 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.grove-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(125, 211, 199, 0.15);
  color: var(--seafoam);
  font-weight: 700;
}

.grove-step h3 {
  margin: 0 0 6px;
  color: var(--sand);
  font-size: 1.05rem;
}

.grove-step p {
  margin: 0;
  color: var(--muted);
}

/* legal pages */
.grove-legal {
  padding: 20px 0 60px;
}

.grove-legal h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  margin: 8px 0 18px;
}

.grove-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
  backdrop-filter: blur(10px);
}

.grove-panel + .grove-panel {
  margin-top: 14px;
}

.grove-panel h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--apricot);
  font-family: var(--font-body);
  font-weight: 700;
}

.grove-panel p,
.grove-panel li {
  color: #d7dde3;
}

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

.grove-error__code {
  font-family: var(--font-brand);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--apricot), var(--seafoam));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  animation: grovePulse 3.2s ease-in-out infinite;
}

.grove-error h1 {
  font-size: 1.5rem;
  margin: 8px 0 12px;
}

.grove-error p {
  color: var(--muted);
  max-width: 28em;
  margin: 0 auto 20px;
}

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

.grove-links a {
  text-decoration: none;
  color: var(--sand);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.grove-links a:hover {
  border-color: var(--apricot);
  color: var(--apricot);
}

/* footer */
.grove-foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: rgba(8, 12, 16, 0.55);
}

.grove-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}

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

.grove-foot__nav a:hover {
  color: var(--apricot);
}

.grove-foot p {
  margin: 0;
  color: #8b949c;
  font-size: 0.85rem;
}

/* reveal */
.grove-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.6s ease;
}

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

body.has-rail {
  --promo-gap: 0px;
}
