@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #1a1220;
  --ink-soft: #3d3348;
  --paper: #f3eef6;
  --paper-2: #ebe3f0;
  --bloom: #ff3d7f;
  --bloom-deep: #d91a5c;
  --mint: #3ddbc8;
  --mint-soft: #b8f5ee;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(26, 18, 32, 0.12);
  --radius: 22px;
  --nav-h: 64px;
  --max: 1080px;
  --font-display: "ZCOOL XiaoWei", "M PLUS Rounded 1c", sans-serif;
  --font-body: "M PLUS Rounded 1c", "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(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 61, 127, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(61, 219, 200, 0.16), transparent 50%),
    linear-gradient(180deg, #faf6fb 0%, var(--paper) 40%, #efe8f4 100%);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bloom-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--bloom);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(243, 238, 246, 0.82);
  border-bottom: 1px solid rgba(255, 61, 127, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(217, 26, 92, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--bloom-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--glass);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.dy-promo {
  background: linear-gradient(90deg, rgba(255, 61, 127, 0.08), rgba(61, 219, 200, 0.1));
  border-bottom: 1px solid rgba(26, 18, 32, 0.06);
  padding: 12px 0;
}

.dy-promo-row,
.sticky-dy-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.dy-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 11px;
}

.dy-chip img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(26, 18, 32, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dy-chip:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(26, 18, 32, 0.18);
}

.dy-chip span {
  margin-top: 4px;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

#sticky-dy {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.28s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

#sticky-dy.is-visible {
  max-height: 220px;
  opacity: 1;
  border-bottom-color: rgba(255, 61, 127, 0.15);
}

.sticky-dy-inner {
  padding: 10px 0;
}

.sticky-dy-grid {
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
}

.sticky-dy-grid .dy-chip {
  width: calc(25% - 12px);
  max-width: 78px;
}

@media (min-width: 900px) {
  .sticky-dy-grid .dy-chip {
    width: calc(12.5% - 12px);
  }
}

.hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 61, 127, 0.22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: drift 9s ease-in-out infinite alternate;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 36px 28px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    linear-gradient(120deg, rgba(255, 61, 127, 0.08), rgba(61, 219, 200, 0.08));
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 1.1;
  margin: 0 0 12px;
  background: linear-gradient(120deg, var(--ink) 20%, var(--bloom-deep) 70%, var(--mint) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise-in 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--ink);
  animation: rise-in 0.9s ease 0.08s both;
}

.hero-lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36em;
  animation: rise-in 1s ease 0.14s both;
}

.hero-visual {
  justify-self: center;
  width: min(280px, 72vw);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(217, 26, 92, 0.22);
  transform: rotate(-2.5deg);
  animation: float-y 5.5s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-24px, 18px);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: rotate(-2.5deg) translateY(0);
  }
  50% {
    transform: rotate(-2.5deg) translateY(-10px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.crumb a {
  text-decoration: none;
  color: var(--ink-soft);
}

.crumb a:hover {
  color: var(--bloom-deep);
}

.crumb span[aria-current="page"] {
  color: var(--ink);
}

.section {
  padding: 42px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  margin: 0 0 10px;
}

.section-desc {
  margin: 0 0 24px;
  color: var(--ink-soft);
  max-width: 42em;
}

.prose p {
  margin: 0 0 1.1em;
  color: var(--ink-soft);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 1.6em 0 0.6em;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.18rem;
}

.split {
  display: grid;
  gap: 24px;
  align-items: center;
}

.split.reverse .shot {
  order: -1;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #fff;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
  margin-inline: auto;
}

.tile-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.tile {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 10px 28px rgba(26, 18, 32, 0.06);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 18, 32, 0.1);
}

.tile h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.mosaic {
  display: grid;
  gap: 16px;
}

.mosaic-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(160deg, #fff, rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 61, 127, 0.1);
  box-shadow: var(--shadow);
}

.mosaic-card img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-height: 360px;
}

.band {
  margin: 20px 0;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 61, 127, 0.12), rgba(61, 219, 200, 0.14)),
    var(--glass);
  border: 1px solid var(--glass-edge);
}

.band h2 {
  margin-top: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--bloom), var(--bloom-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 26, 92, 0.28);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid rgba(26, 18, 32, 0.08);
}

.btn-ghost:hover {
  color: var(--bloom-deep);
}

.rail {
  display: grid;
  gap: 14px;
}

.rail-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.rail-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--bloom), #ff8fb3);
}

.site-footer {
  margin-top: 48px;
  padding: 36px 0 48px;
  background: linear-gradient(180deg, transparent, rgba(26, 18, 32, 0.04));
  border-top: 1px solid rgba(255, 61, 127, 0.12);
}

.footer-grid {
  display: grid;
  gap: 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-copy {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.error-box {
  text-align: center;
  padding: 72px 20px 90px;
}

.error-box .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--bloom), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.error-box h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 12px 0;
}

.legal-page .prose {
  max-width: 760px;
}

@media (min-width: 760px) {
  .hero-panel {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 48px 44px;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse .shot {
    order: 0;
  }

  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

@media (max-width: 759px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-inner {
    position: relative;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    flex-direction: column;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 61, 127, 0.12);
    z-index: 60;
  }

  .nav-menu.is-open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
