/* 母狗园 mugouyuan.quest — 全新视觉体系 */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Noto+Serif+SC:wght@500;700&display=swap");

:root {
  --ink: #07080c;
  --ink-2: #10121a;
  --panel: rgba(22, 24, 34, 0.72);
  --line: rgba(255, 214, 196, 0.12);
  --text: #f7f1ea;
  --mute: #a59c94;
  --rose: #ff3d6e;
  --coral: #ff7a45;
  --gold: #e8b86d;
  --mist: rgba(255, 122, 69, 0.14);
  --glow: 0 0 40px rgba(255, 61, 110, 0.25);
  --radius: 22px;
  --max: 1120px;
  --nav-h: 64px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 61, 110, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 122, 69, 0.14), transparent 50%),
    linear-gradient(180deg, #0b0d14 0%, var(--ink) 40%, #0a0b10 100%);
  background-attachment: fixed;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body.grove-nav-lock {
  overflow: hidden;
}

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

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

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

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

/* —— 顶栏 —— */
.grove-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(7, 8, 12, 0.78);
  border-bottom: 1px solid var(--line);
}

.grove-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.grove-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.grove-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--glow);
}

.grove-desk-nav {
  display: none;
  gap: 22px;
}

.grove-desk-nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
}

.grove-desk-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--coral));
  transition: width 0.25s ease;
}

.grove-desk-nav a:hover,
.grove-desk-nav a.is-current {
  color: var(--text);
}

.grove-desk-nav a:hover::after,
.grove-desk-nav a.is-current::after {
  width: 100%;
}

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

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

.grove-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.grove-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.grove-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.grove-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 70;
  background: rgba(5, 6, 10, 0.96);
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.grove-drawer.is-open {
  transform: translateX(0);
}

.grove-drawer a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .grove-desk-nav {
    display: flex;
  }
  .grove-burger,
  .grove-drawer {
    display: none;
  }
}

/* —— 推广与固定下载条 —— */
.grove-promo-band {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 61, 110, 0.08), transparent);
  padding: 8px 0 4px;
}

.grove-sticky-rail {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(10, 11, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease;
}

.grove-sticky-rail.is-pinned {
  max-height: 280px;
  opacity: 1;
  pointer-events: auto;
  padding: 6px 0 2px;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 顶部推广区 + 漂浮固定区：图标样式与 PC 漂浮广告（mgy）完全一致 */
#groveAdsTop,
#groveAdsSticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
}

#groveAdsTop .grove-ad-cell,
#groveAdsSticky .grove-ad-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

/* 移动端每行 4 个；PC 每行 8 个 */
@media (max-width: 767px) {
  #groveAdsTop .grove-ad-cell,
  #groveAdsSticky .grove-ad-cell {
    width: 25%;
  }
}

@media (min-width: 768px) {
  #groveAdsTop .grove-ad-cell,
  #groveAdsSticky .grove-ad-cell {
    width: 12.5%;
  }
}

#groveAdsTop .grove-ad-cell figure,
#groveAdsSticky .grove-ad-cell figure {
  margin: 0;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#groveAdsTop .grove-ad-cell a,
#groveAdsSticky .grove-ad-cell a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#groveAdsTop .grove-ad-cell img,
#groveAdsSticky .grove-ad-cell img {
  width: 65px !important;
  height: 65px !important;
  max-width: 65px !important;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#groveAdsTop .grove-ad-cell img:hover,
#groveAdsSticky .grove-ad-cell img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#groveAdsTop .grove-ad-cap,
#groveAdsSticky .grove-ad-cap {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 4px 0 0;
}

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

.grove-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 8, 12, 0.2) 0%, rgba(7, 8, 12, 0.75) 55%, rgba(7, 8, 12, 0.92) 100%),
    url("shot-hot-feed.jpg") right center / cover no-repeat;
  z-index: -2;
  animation: grove-drift 18s ease-in-out infinite alternate;
}

.grove-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(transparent, var(--ink));
  z-index: -1;
}

@keyframes grove-drift {
  from {
    transform: scale(1.02) translateX(0);
  }
  to {
    transform: scale(1.08) translateX(-2%);
  }
}

.grove-hero-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 11vw, 5.2rem);
  line-height: 1.05;
  margin: 0 0 14px;
  background: linear-gradient(105deg, #fff 20%, var(--coral) 55%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.06em;
  animation: grove-rise 0.9s ease both;
}

.grove-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 18em;
  animation: grove-rise 0.9s ease 0.1s both;
}

.grove-hero-lead {
  margin: 0 0 28px;
  color: var(--mute);
  max-width: 36em;
  font-size: 1.02rem;
  animation: grove-rise 0.9s ease 0.18s both;
}

.grove-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: grove-rise 0.9s ease 0.26s both;
}

.grove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.grove-btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.grove-btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 122, 69, 0.45);
  box-shadow: var(--glow);
}

.grove-btn-solid {
  color: #14080c;
  background: linear-gradient(120deg, var(--coral), var(--rose));
  box-shadow: var(--glow);
}

.grove-btn-solid:hover {
  color: #14080c;
}

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

/* —— 面包屑 —— */
.grove-crumbs {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--mute);
}

.grove-crumbs a {
  color: var(--mute);
  text-decoration: none;
}

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

.grove-crumbs span {
  margin: 0 8px;
  opacity: 0.5;
}

/* —— 正文区 —— */
.grove-main {
  padding: 28px 0 72px;
}

.grove-slab {
  margin: 0 0 42px;
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.grove-slab h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  line-height: 1.35;
}

.grove-slab h3 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--gold);
}

.grove-slab p {
  margin: 0 0 14px;
  color: #e8e0d8;
  font-size: 0.98rem;
}

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

.grove-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.grove-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* 图文交错 */
.grove-duo {
  display: grid;
  gap: 22px;
  align-items: center;
}

.grove-duo.is-flip .grove-phone {
  order: -1;
}

@media (min-width: 860px) {
  .grove-duo {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
  }
  .grove-duo.is-flip {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .grove-duo.is-flip .grove-phone {
    order: 0;
  }
  .grove-duo.is-flip .grove-copy {
    order: 1;
  }
}

.grove-phone {
  position: relative;
  margin: 0 auto;
  width: min(100%, 280px);
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 122, 69, 0.35), rgba(255, 61, 110, 0.15));
  box-shadow: var(--glow);
}

.grove-phone img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.grove-phone figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  color: var(--mute);
  text-align: center;
}

/* 卡片矩阵 */
.grove-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.grove-tile {
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 61, 110, 0.06));
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.grove-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 69, 0.4);
}

.grove-tile h3 {
  margin-top: 0;
}

.grove-tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mute);
}

/* 混排：左文右卡 */
.grove-mix {
  display: grid;
  gap: 18px;
}

@media (min-width: 860px) {
  .grove-mix {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.grove-ribbon {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.grove-ribbon::-webkit-scrollbar {
  height: 4px;
}

.grove-ribbon::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 69, 0.45);
  border-radius: 4px;
}

.grove-ribbon figure {
  flex: 0 0 180px;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.grove-ribbon img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.grove-ribbon figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--mute);
}

.grove-cta-band {
  text-align: center;
  padding: 36px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 122, 69, 0.35);
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(255, 61, 110, 0.22), transparent 70%),
    var(--panel);
}

.grove-cta-band h2 {
  margin-bottom: 10px;
}

.grove-cta-band p {
  max-width: 40em;
  margin: 0 auto 22px;
  color: var(--mute);
}

/* 法律页 */
.grove-legal h2 {
  margin-top: 28px;
}

.grove-legal ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: #e8e0d8;
}

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

/* 错误页 */
.grove-error {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 48px 16px;
}

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

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

.grove-error p {
  color: var(--mute);
  margin: 0 0 24px;
}

/* 页脚 */
.grove-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: rgba(0, 0, 0, 0.35);
}

.grove-foot-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.grove-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.grove-foot-nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.grove-copy-line {
  margin: 0;
  color: #7d7670;
  font-size: 0.82rem;
}

@media (min-width: 860px) {
  .grove-foot-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
