:root {
  --ink: #2a3140;
  --ink-soft: #667085;
  --yarn: #f4a8bc;
  --yarn-deep: #e78aa3;
  --sky: #6ea8c4;
  --sky-deep: #4f8fad;
  --fluff: #f7fbfe;
  --mist: #e8f2f8;
  --line: rgba(42, 49, 64, 0.1);
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(79, 143, 173, 0.14);
  --font-display: "ZCOOL XiaoWei", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(820px 420px at 8% -8%, rgba(244, 168, 188, 0.22), transparent 55%),
    radial-gradient(760px 380px at 92% 0%, rgba(110, 168, 196, 0.2), transparent 52%),
    linear-gradient(180deg, #fbfdff 0%, var(--fluff) 48%, #eef6fb 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

.container {
  width: min(1100px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  color: rgba(255,255,255,0.95);
  transition: 0.35s var(--ease);
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 251, 254, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.brand-yarn {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff6f8, transparent 40%),
    conic-gradient(from 20deg, var(--yarn), var(--sky), var(--yarn-deep), var(--yarn));
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.94rem;
  opacity: 0.92;
}
.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  color: inherit;
}
.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
  background: rgba(255,255,255,0.8);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fluff 16s var(--ease) infinite alternate;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 49, 64, 0.22) 0%, rgba(42, 49, 64, 0.18) 42%, rgba(42, 49, 64, 0.76) 100%),
    linear-gradient(90deg, rgba(42, 49, 64, 0.42), transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
}
.soft-tag {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 0.84rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.08s forwards;
}
.hero-brand {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.2s forwards;
}
.hero-title {
  margin: 0 0 0.8rem;
  max-width: 18em;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 600;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.34s forwards;
}
.hero-desc {
  margin: 0 0 1.4rem;
  max-width: 36em;
  color: rgba(255,255,255,0.92);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.46s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.58s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yarn); color: #4a2432; }
.btn-primary:hover { background: #f7b6c7; }
.btn-fast { background: var(--sky); color: #fff; }
.btn-fast:hover { background: var(--sky-deep); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--sky);
  color: var(--sky-deep);
}

.section { padding: clamp(3.4rem, 6.5vw, 5.4rem) 0; }

.section-head {
  max-width: 42rem;
  margin-bottom: 1.7rem;
}
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-deep);
}
.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}
.section-head p { margin: 0; color: var(--ink-soft); }

.yarn-board {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: stretch;
}
.yarn-visual {
  overflow: hidden;
  border-radius: 32px;
  min-height: 400px;
  box-shadow: var(--shadow);
}
.yarn-visual img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}
.tip-stack {
  display: grid;
  gap: 0.85rem;
  align-content: center;
}
.tip {
  background: #fff;
  border-radius: 22px;
  padding: 1.15rem 1.15rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
}
.tip .dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--yarn), var(--sky));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
}
.tip h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.tip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.calm-band {
  background: linear-gradient(180deg, rgba(232, 242, 248, 0.9), rgba(247, 251, 254, 0.95));
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.loop {
  background: #fff;
  border-radius: 24px;
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.loop h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.loop p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.scene-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
}
.scene-visual {
  overflow: hidden;
  border-radius: 28px;
  min-height: 320px;
  box-shadow: var(--shadow);
}
.scene-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.scene-copy h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.scene-copy p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

.promo {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 400px;
  display: grid;
  align-items: end;
  color: #fff;
  box-shadow: var(--shadow);
}
.promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,49,64,0.1), rgba(42,49,64,0.78));
}
.promo-copy {
  position: relative;
  z-index: 1;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  max-width: 36rem;
}
.promo-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.promo-copy p {
  margin: 0;
  color: rgba(255,255,255,0.92);
}

.download-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 290px;
  display: grid;
  align-items: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.download-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(42,49,64,0.86), rgba(42,49,64,0.38));
}
.download-copy {
  position: relative;
  z-index: 1;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  max-width: 34rem;
}
.download-copy h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.download-copy p {
  margin: 0 0 1.15rem;
  color: rgba(255,255,255,0.92);
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.site-footer {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  background: rgba(247, 251, 254, 0.95);
}
.footer-inner {
  display: grid;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}
.seo-keywords a {
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.82;
}
.seo-keywords a:hover {
  color: var(--sky-deep);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.75s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes fluff {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translate(-1%, -0.6%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .soft-tag,
  .hero-brand,
  .hero-title,
  .hero-desc,
  .hero-actions,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 960px) {
  .yarn-board,
  .scene-row,
  .loop-grid {
    grid-template-columns: 1fr;
  }
  .yarn-visual,
  .yarn-visual img,
  .scene-visual img {
    min-height: 250px;
  }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 1rem auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(247,251,254,0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 0.8rem;
    border-radius: 12px;
  }
  .nav-links a:hover { background: var(--mist); }
}

@media (max-width: 480px) {
  .container,
  .hero-content { width: min(1100px, calc(100% - 1.3rem)); }
  .hero-actions,
  .download-actions { width: 100%; }
  .btn { width: 100%; }
}
