/* 母狗园官网 · petal 视觉体系 · 移动端优先 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+QingKe+HuangYou&display=swap");

:root {
  --ink: #0e070b;
  --ink-2: #1a0d14;
  --ink-3: #2a1520;
  --rose: #ff3b6e;
  --rose-deep: #d91a4f;
  --ember: #ff8f4a;
  --peach: #ffc4a8;
  --mist: #f8e9ef;
  --mute: #b89aa8;
  --line: rgba(255, 180, 200, 0.16);
  --glass: rgba(26, 13, 20, 0.72);
  --glow: 0 0 40px rgba(255, 59, 110, 0.28);
  --radius: 18px;
  --nav-h: 58px;
  --sticky-h: 92px;
  --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 59, 110, 0.22), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 143, 74, 0.14), transparent 50%),
    linear-gradient(180deg, #140910 0%, var(--ink) 40%, #12080d 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body.petal-lock {
  overflow: hidden;
}

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

a {
  color: var(--peach);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* —— 顶部推广区 —— */
.petal-promo {
  background: linear-gradient(90deg, rgba(255, 59, 110, 0.12), rgba(255, 143, 74, 0.08));
  border-bottom: 1px solid var(--line);
  padding: 8px 0 4px;
}

.petal-promo-frame {
  width: 100%;
  min-height: 120px;
  height: 130px;
  border: 0;
  display: block;
  background: transparent;
}

/* —— 导航 —— */
.petal-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(14, 7, 11, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

body.petal-scrolled .petal-topbar {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

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

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

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

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

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

.petal-nav-desk a {
  color: var(--mute);
  font-size: 0.92rem;
  font-weight: 500;
}

.petal-nav-desk a:hover,
.petal-nav-desk a.is-on {
  color: var(--mist);
}

.petal-nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.petal-nav-toggle i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mist);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.petal-nav-toggle[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.petal-nav-toggle[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}
.petal-nav-toggle[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.petal-veil {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.petal-veil.is-open {
  opacity: 1;
  pointer-events: auto;
}

.petal-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(78vw, 300px);
  height: 100%;
  background: linear-gradient(180deg, #1f1018, #12080d);
  border-left: 1px solid var(--line);
  z-index: 100;
  padding: 80px 24px 32px;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.petal-drawer a {
  font-size: 1.05rem;
  color: var(--mist);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* —— 固定下载条 —— */
.petal-sticky-dl {
  position: sticky;
  top: var(--nav-h);
  z-index: 70;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  background: rgba(18, 8, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.petal-sticky-dl.is-show {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 0 10px;
}

.petal-sticky-rail {
  width: min(100% - 16px, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 4px;
  justify-items: center;
}

.petal-sticky-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 72px;
  color: var(--mute);
  font-size: 10px;
  text-align: center;
}

.petal-sticky-item img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.petal-sticky-item:hover img {
  transform: translateY(-3px) scale(1.04);
}

.petal-sticky-item span {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Hero —— */
.petal-hero {
  position: relative;
  padding: 36px 0 48px;
  overflow: hidden;
}

.petal-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at center, rgba(255, 59, 110, 0.35), transparent 65%),
    radial-gradient(ellipse at 70% 40%, rgba(255, 143, 74, 0.22), transparent 55%);
  filter: blur(8px);
  pointer-events: none;
  animation: petal-pulse 7s ease-in-out infinite alternate;
}

@keyframes petal-pulse {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}

.petal-hero-panel {
  position: relative;
  border-radius: 28px;
  padding: 36px 22px 28px;
  background:
    linear-gradient(145deg, rgba(255, 59, 110, 0.18), rgba(255, 143, 74, 0.06) 45%, rgba(20, 10, 15, 0.4)),
    var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.petal-hero-logo {
  width: min(220px, 70%);
  height: auto;
  margin-bottom: 18px;
  animation: petal-rise 0.8s ease both;
  filter: drop-shadow(0 8px 24px rgba(255, 59, 110, 0.35));
}

.petal-hero-kicker {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 12px;
  background: linear-gradient(105deg, #fff 20%, var(--peach) 55%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: petal-rise 0.9s ease both;
}

.petal-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--mist);
  animation: petal-rise 0.9s 0.12s ease both;
}

.petal-hero-lead {
  margin: 0;
  color: var(--mute);
  font-size: 0.98rem;
  max-width: 36em;
  animation: petal-rise 0.9s 0.22s ease both;
}

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

.petal-hero-glow {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 110, 0.45), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* —— 通用区块 —— */
.petal-section {
  padding: 42px 0;
}

.petal-section + .petal-section {
  border-top: 1px solid var(--line);
}

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

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

.petal-section h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

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

.petal-section p {
  margin: 0 0 14px;
  color: #e8d4dc;
}

.petal-lead {
  color: var(--mute) !important;
  font-size: 0.98rem;
  margin-bottom: 20px !important;
}

/* 图文交错 */
.petal-split {
  display: grid;
  gap: 22px;
  align-items: center;
  margin: 22px 0;
}

.petal-split.is-flip .petal-shot {
  order: -1;
}

.petal-shot {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  background: var(--ink-3);
}

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

.petal-shot.wide img {
  aspect-ratio: 16 / 10;
  max-height: 360px;
  object-position: center;
}

/* 卡片网格 */
.petal-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.petal-card {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 59, 110, 0.06));
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.petal-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #fff;
}

.petal-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--mute);
}

/* 玻璃条 */
.petal-glass-strip {
  margin: 24px 0;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 59, 110, 0.1);
  border: 1px solid rgba(255, 143, 74, 0.25);
  box-shadow: inset 0 0 30px rgba(255, 59, 110, 0.08);
}

/* CTA */
.petal-cta-band {
  margin: 36px 0 12px;
  padding: 28px 20px;
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(255, 59, 110, 0.35), rgba(255, 143, 74, 0.22)),
    var(--ink-2);
  border: 1px solid var(--line);
}

.petal-cta-band h2 {
  margin-bottom: 8px;
}

.petal-cta-band p {
  color: var(--mute);
  margin-bottom: 18px;
}

.petal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff !important;
  background: linear-gradient(105deg, var(--rose), var(--ember));
  box-shadow: 0 10px 28px rgba(255, 59, 110, 0.4);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.petal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 143, 74, 0.45);
}

.petal-btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mist) !important;
  box-shadow: none;
  margin-left: 8px;
}

/* 面包屑 */
.petal-crumb {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: var(--mute);
}

.petal-crumb a {
  color: var(--peach);
}

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

/* 法律页 */
.petal-legal {
  padding: 12px 0 56px;
}

.petal-legal h1 {
  font-size: 1.6rem;
  margin: 8px 0 16px;
}

.petal-legal h2 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.petal-legal ul {
  padding-left: 1.2em;
  color: #e8d4dc;
}

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

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

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

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

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

/* 页脚 */
.petal-foot {
  margin-top: 40px;
  padding: 36px 0 120px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 59, 110, 0.06));
}

.petal-foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.petal-foot-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.petal-foot-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.petal-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 18px;
}

.petal-foot-nav a {
  color: var(--mute);
  font-size: 0.9rem;
}

.petal-foot-copy {
  color: #7a6170;
  font-size: 0.82rem;
  margin: 0;
}

/* 列表点缀 */
.petal-ticks {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}

.petal-ticks li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: #e8d4dc;
}

.petal-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--ember));
  box-shadow: 0 0 12px rgba(255, 59, 110, 0.5);
}

/* 混排图卡 */
.petal-mosaic {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.petal-mosaic figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
}

.petal-mosaic img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.petal-mosaic figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--mute);
}

/* 桌面端 */
@media (min-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  body {
    font-size: 16px;
  }

  .petal-nav-desk {
    display: flex;
  }

  .petal-nav-toggle {
    display: none;
  }

  .petal-sticky-rail {
    grid-template-columns: repeat(8, 1fr);
  }

  .petal-hero {
    padding: 56px 0 64px;
  }

  .petal-hero-panel {
    padding: 52px 48px 44px;
  }

  .petal-split {
    grid-template-columns: 1fr 1.05fr;
    gap: 36px;
  }

  .petal-split.is-flip .petal-shot {
    order: 0;
  }

  .petal-split.is-flip {
    grid-template-columns: 1.05fr 1fr;
  }

  .petal-split.is-flip .petal-copy {
    order: 2;
  }

  .petal-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .petal-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .petal-shot img {
    max-height: 640px;
  }

  .petal-section {
    padding: 56px 0;
  }
}

@media (min-width: 1024px) {
  .petal-cards.two {
    grid-template-columns: repeat(2, 1fr);
  }
}
