/* 小金豆官网 — 品牌红对齐 Logo，结构参考返利网导购站 */
:root {
  --brand: #e60012;
  --brand-deep: #c40010;
  --brand-soft: #ff4d5a;
  --brand-mist: #fff0f1;
  --ink: #1a1a1a;
  --muted: #666666;
  --line: #f0d0d2;
  --bg: #fffafa;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(230, 0, 18, 0.12);
  --radius: 14px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 大标题不用站酷小薇：该字体在大字号下「豆」等字易被行框裁切 */
  --display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(230, 0, 18, 0.08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(255, 77, 90, 0.08), transparent 55%),
    var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 0, 18, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(230, 0, 18, 0.25);
}

.brand__text {
  font-family: var(--display);
  font-size: 24px;
  color: var(--brand);
  letter-spacing: 0.06em;
  font-weight: 900;
  line-height: 1.4;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--brand);
  background: var(--brand-mist);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--brand-mist);
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--brand);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, #e60012 0%, #ff2a3a 42%, #c40010 100%);
  color: var(--white);
}

.hero__glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__glow::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 56px 0 64px;
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.hero__brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 88px);
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: 0.12em;
  overflow: visible;
  padding: 0.06em 0.08em 0.1em 0;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  animation: rise 0.8s ease both;
}

.hero__desc {
  margin: 18px 0 0;
  max-width: 28em;
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.95;
  animation: rise 0.9s 0.08s ease both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: rise 1s 0.12s ease both;
}

.hero__visual {
  display: flex;
  justify-content: center;
  animation: floatIn 1s 0.15s ease both;
}

.hero__badge-ring {
  padding: 18px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.hero__logo {
  width: min(220px, 52vw);
  height: auto;
  border-radius: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--primary:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Sections */
.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  color: var(--ink);
}

.section-sub {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.platforms,
.channels,
.steps {
  padding: 72px 0;
}

.platform-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.platform-list li {
  text-align: center;
  padding: 18px 10px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--brand-deep);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.platform-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 0, 18, 0.35);
}

.channel-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.channel {
  padding: 24px 20px 22px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.channel:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 0, 18, 0.35);
}

.channel__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 14px;
}

.channel h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.channel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  min-height: 4.5em;
}

.channel__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}

.trust {
  padding: 28px 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 50%, var(--brand-soft));
  color: #fff;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust__item {
  text-align: center;
  padding: 12px 8px;
}

.trust__item strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.trust__item span {
  font-size: 13px;
  opacity: 0.9;
}

.step-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: none;
}

.step-list li {
  padding: 28px 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fff, #fff8f8);
  border: 1px solid var(--line);
}

.step-list__num {
  display: inline-block;
  font-family: var(--display);
  font-size: 28px;
  color: var(--brand);
  margin-bottom: 8px;
}

.step-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Download */
.download {
  padding: 80px 0;
  background:
    linear-gradient(160deg, #e60012 0%, #ff3344 45%, #a8000e 100%);
  color: #fff;
}

.download__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.download__copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
}

.download__copy p {
  margin: 12px 0 0;
  opacity: 0.95;
}

.download__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.download__tip {
  margin-top: 14px !important;
  font-size: 13px;
  opacity: 0.8 !important;
}

.phone-mock {
  width: min(220px, 70%);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  animation: float 4.5s ease-in-out infinite;
}

.phone-mock img {
  border-radius: 22px;
}

.phone-mock p {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
}

/* Footer */
.footer {
  background: #1c0a0c;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}

.footer__col a {
  display: block;
  font-size: 13px;
  margin: 8px 0;
  opacity: 0.8;
}

.footer__col a:hover {
  opacity: 1;
  color: #ffb3b8;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__brand img {
  border-radius: 14px;
}

.footer__brand p {
  margin: 0;
  font-size: 13px;
}

.footer__bottom {
  padding-top: 18px;
  font-size: 12px;
  opacity: 0.7;
}

.footer__bottom p {
  margin: 4px 0;
}

.footer__icp {
  opacity: 0.65;
}

/* Inner pages */
.page-hero {
  padding: 48px 0 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.45;
  padding: 0.06em 0;
  overflow: visible;
}

.page-hero p {
  margin: 10px 0 0;
  opacity: 0.92;
}

.page-body {
  padding: 40px 0 72px;
}

.page-body article {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.page-body h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  color: var(--brand-deep);
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p,
.page-body li {
  color: var(--muted);
  font-size: 15px;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .platform-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .channel-grid,
  .trust__grid,
  .step-list,
  .footer__grid,
  .hero__grid,
  .download__inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-inline: auto;
  }

  .hero__cta {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    width: 100%;
  }

  .channel-grid,
  .trust__grid,
  .step-list,
  .footer__grid,
  .download__inner,
  .platform-list {
    grid-template-columns: 1fr;
  }

  .platform-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }
}

/* Coming soon modal — 品牌红对齐，无浏览器地址标题 */
.toast-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.toast-modal.is-open {
  display: flex;
}

.toast-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(28, 10, 12, 0.45);
}

.toast-modal__panel {
  position: relative;
  z-index: 1;
  width: min(300px, 100%);
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(230, 0, 18, 0.22);
  text-align: center;
  animation: toastIn 0.22s ease;
}

.toast-modal__msg {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-deep);
  letter-spacing: 0.12em;
}

.toast-modal__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 42px;
  margin: 0 auto;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.28);
}

.toast-modal__ok:hover {
  filter: brightness(1.05);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
