/* 转奶日记官网（FR-L10 · W-01 画板落地）—— 深色科幻稳重风，PC 优先 + 移动端自适应 */

:root {
  --bg: #0a0f1e;
  --bg-step: #0d1428;
  --bg-footer: #070b16;
  --txt: #f5f7fa;
  --txt-2: #9aa4b8;
  --txt-3: #6b7488;
  --primary: #ff6b35;
  --acc: #ff9a62;
  --glass: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --grad: linear-gradient(180deg, #ff9a62, #ff6b35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1248px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    filter 0.25s ease;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.45);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--txt);
}

.btn--ghost:hover {
  border-color: rgba(255, 154, 98, 0.6);
  transform: translateY(-2px);
}

.btn--sm {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

.btn--lg {
  height: 54px;
  padding: 0 32px;
  font-size: 15px;
}

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(10, 15, 30, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--txt);
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav__logo svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.nav__name {
  font-size: 18px;
  font-weight: 600;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-size: 14px;
  color: var(--txt-2);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav__links a:hover {
  color: var(--txt);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 176px 0 96px;
  text-align: center;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero__blob--a {
  width: 560px;
  height: 560px;
  right: -80px;
  top: -60px;
  background: rgba(255, 107, 53, 0.16);
}

.hero__blob--b {
  width: 440px;
  height: 440px;
  left: -90px;
  top: 240px;
  background: rgba(45, 183, 245, 0.1);
}

.hero__ring {
  position: absolute;
  width: 220px;
  height: 220px;
  left: 170px;
  top: 90px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero__badge {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--acc);
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.15;
}

.hero__line--acc {
  color: var(--acc);
}

.hero__line .char {
  display: inline-block;
  will-change: transform;
}

.hero__sub {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--txt-2);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------- 跑马灯 ---------- */

.marquee {
  overflow: hidden;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}

.marquee__track span {
  font-size: 18px;
  color: var(--txt-2);
  padding-right: 48px;
}

/* ---------- 大数字 ---------- */

.stats {
  padding: 36px 0;
}

.stats__inner {
  max-width: 1048px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stats__num {
  font-size: 44px;
  font-weight: 600;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
}

.stats__label {
  font-size: 13px;
  color: var(--txt-2);
}

/* ---------- 区块标题 ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2,
.steps__title,
.cta__title {
  font-size: 32px;
  font-weight: 600;
}

.section-head p {
  font-size: 14px;
  color: var(--txt-2);
}

/* ---------- 核心能力 ---------- */

.features {
  padding: 72px 0 68px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 107, 53, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 107, 53, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--acc);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0 8px;
}

.card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--txt-2);
}

/* ---------- 转奶阶梯 ---------- */

.steps {
  background: var(--bg-step);
  padding: 64px 0;
}

.steps__title {
  text-align: center;
  margin-bottom: 28px;
}

.steps__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step__idx {
  display: block;
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 107, 53, 0.33);
}

.step h3 {
  margin: 16px 0 8px;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  text-align: center;
}

.cta__blob {
  position: absolute;
  width: 800px;
  height: 520px;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.1);
  filter: blur(100px);
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta__sub {
  font-size: 14px;
  color: var(--txt-2);
}

/* ---------- 页脚 ---------- */

.footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0 28px;
  text-align: center;
}

.footer p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--txt-3);
}

.footer a {
  color: var(--txt-3);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: var(--txt-2);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .hero__ring {
    display: none;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .steps__row {
    grid-template-columns: 1fr;
  }

  .stats__inner {
    flex-direction: column;
    gap: 28px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 140px 0 72px;
  }

  .hero__blob--a {
    width: 360px;
    height: 360px;
    right: -140px;
  }

  .hero__blob--b {
    width: 300px;
    height: 300px;
    left: -140px;
  }

  .btn--lg {
    height: 48px;
    padding: 0 26px;
    font-size: 14px;
  }

  .marquee__track span {
    font-size: 15px;
  }

  .section-head h2,
  .steps__title,
  .cta__title {
    font-size: 26px;
  }

  .stats__num {
    font-size: 36px;
  }
}

/* ---------- 降低动态效果 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card,
  .nav,
  .nav__links a,
  .footer a {
    transition: none;
  }

  .marquee__track {
    transform: none !important;
  }
}
