/* 咕豆官网 — Bubblegum */
:root {
  --pink: #d9579a;
  --pink-deep: #c04586;
  --teal: #8ecfd4;
  --cream: #faf4f7;
  --cream-deep: #f2e8ee;
  --ink: #2a1f28;
  --ink-muted: #5c4a56;
  --line: rgba(42, 31, 40, 0.12);
  --shadow: 3px 3px 0 rgba(42, 31, 40, 0.18);
  --radius: 16px;
  --max: 960px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(217, 87, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(142, 207, 212, 0.22), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #fff8fb 40%, var(--cream-deep) 100%);
  min-height: 100vh;
}

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

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

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(250, 244, 247, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

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

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--pink);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-brand {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.hero-tag {
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: var(--pink-deep);
  opacity: 0;
  animation: rise 0.7s ease 0.12s forwards;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  opacity: 0;
  animation: rise 0.7s ease 0.22s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.7s ease 0.32s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(42, 31, 40, 0.2);
  color: inherit;
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(42, 31, 40, 0.18);
}

.btn-primary {
  background: var(--pink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--pink-deep);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(242, 232, 238, 0.9)),
    radial-gradient(circle at 30% 30%, rgba(142, 207, 212, 0.55), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(217, 87, 154, 0.45), transparent 50%);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  opacity: 0;
  animation: rise 0.8s ease 0.2s forwards;
}

.hero-visual img {
  width: 58%;
  border-radius: 22%;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.blob-a {
  width: 42%;
  height: 42%;
  left: 12%;
  top: 18%;
  background: var(--teal);
  opacity: 0.85;
}

.blob-b {
  width: 30%;
  height: 30%;
  right: 16%;
  bottom: 22%;
  background: var(--pink);
  opacity: 0.9;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

.feature-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature {
  padding: 1.25rem 0;
  border-top: 2px solid var(--ink);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--pink);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(2rem, 5vw, 3rem) 0 1rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 38rem;
}

.prose {
  padding-bottom: 3rem;
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.45rem;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose .meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.info-block {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.info-block dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.info-block dt:first-child {
  margin-top: 0;
}

.info-block dd {
  margin: 0.2rem 0 0;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.45);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.footer-company {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.footer-en {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-meta a {
  color: inherit;
}

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

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
  }

  .nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

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

  .hero-brand,
  .hero-tag,
  .hero-lead,
  .cta-row,
  .hero-visual {
    opacity: 1;
  }
}
