/* 寻米鸭官网 — 品牌色板见 docs/brand */

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

:root {
  --orange: #ffa631;
  --orange-press: #e89020;
  --ink: #2c2a28;
  --paper: #fff8f0;
  --rice: #fff4e6;
  --fog: #ffe8c8;
  --tea: #5c574e;
  --tea-light: #8a847a;
  --muted: #5c574e;
  --line: #ede4d6;
  --card: #ffffff;
  --sprout: #3e8f6a;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 22px 56px rgba(44, 42, 40, 0.14);
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  --display: "Nunito", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.5rem;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
  margin-left: 0.35rem;
}

.site-nav a {
  color: var(--tea);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--orange-press);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(255, 166, 49, 0.35);
}

.btn-primary:hover {
  background: var(--orange-press);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
}

.btn-ghost:hover {
  background: var(--rice);
}

/* Hero — full-bleed atmosphere, brand first */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 1.5rem 4rem;
  background:
    radial-gradient(920px 420px at 12% -10%, #ffe0b8 0%, transparent 58%),
    radial-gradient(760px 380px at 92% 8%, #ffe8c8 0%, transparent 52%),
    radial-gradient(540px 280px at 55% 100%, #fff4e6 0%, transparent 60%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(
    circle at 1px 1px,
    color-mix(in srgb, var(--orange) 28%, transparent) 1px,
    transparent 0
  );
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}

.hero-grid {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 20em;
}

.hero-lead {
  margin-top: 1rem;
  max-width: 28rem;
  color: var(--tea);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-qr {
  margin-top: 1.6rem;
}

.qr-card-hero {
  display: inline-flex;
  align-items: center;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(44, 42, 40, 0.1);
}

.qr-card-hero img {
  width: 148px;
  height: 148px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 440px;
}

.phone-stack {
  position: relative;
  width: min(380px, 100%);
  height: 440px;
}

.phone {
  position: absolute;
  width: 56%;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  background: #1a1816;
}

.phone-back {
  left: 0;
  top: 42px;
  transform: rotate(-8deg);
  opacity: 0.9;
  animation: phone-drift 7s ease-in-out infinite;
}

.phone-front {
  right: 0;
  top: 0;
  width: 64%;
  transform: rotate(4deg);
  z-index: 2;
  animation: phone-float 5.5s ease-in-out infinite;
}

.hero-mascot {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(44, 42, 40, 0.12);
  z-index: 3;
  animation: mascot-bob 4.2s ease-in-out infinite;
}

@keyframes phone-float {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-10px);
  }
}

@keyframes phone-drift {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(8px);
  }
}

@keyframes mascot-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Pillars */
.pillars {
  background: var(--orange);
  color: var(--ink);
  padding: 3rem 0;
}

.pillars .section-title {
  text-align: center;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  margin-bottom: 1.4rem;
}

.section-title {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.pillar {
  background: var(--card);
  border-radius: 16px;
  padding: 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 28px rgba(44, 42, 40, 0.08);
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(44, 42, 40, 0.12);
}

.pillar strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.pillar em {
  font-style: normal;
  color: var(--tea);
  font-size: 0.92rem;
}

/* Feature rows */
.feature {
  padding: 4.5rem 0;
}

.feature-alt {
  background: var(--rice);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-press);
  background: var(--fog);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.feature-copy h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}

.feature-copy p {
  color: var(--tea);
  font-size: 1.05rem;
  max-width: 32rem;
}

.feature-phone {
  display: flex;
  justify-content: center;
}

.feature-phone img {
  width: min(280px, 72%);
  border-radius: 32px;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #1a1816;
}

/* Gallery */
.gallery {
  padding: 4rem 0 3.5rem;
  background:
    linear-gradient(180deg, transparent, var(--rice) 40%, transparent),
    var(--paper);
}

.gallery .section-title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.gallery-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-rail figure {
  margin: 0;
}

.gallery-rail img {
  width: 100%;
  border-radius: 22px;
  border: 2px solid #fff;
  box-shadow: 0 14px 36px rgba(44, 42, 40, 0.12);
  background: #1a1816;
}

.gallery-rail figcaption {
  margin-top: 0.65rem;
  text-align: center;
  font-weight: 600;
  color: var(--tea);
  font-size: 0.95rem;
}

/* Download */
.download {
  padding: 4rem 0 4.5rem;
  background:
    radial-gradient(700px 280px at 50% 0%, var(--fog), transparent 70%),
    var(--paper);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem 2.25rem;
  box-shadow: 0 18px 48px rgba(44, 42, 40, 0.08);
}

.download-mascot {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border: 2px solid var(--fog);
}

.download-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.download-copy p {
  color: var(--tea);
  max-width: 28rem;
}

.qr-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem 1rem 1rem;
  min-width: 148px;
  transition: transform 0.15s ease;
}

a.qr-card:hover {
  transform: translateY(-2px);
}

.qr-card img {
  width: 132px;
  height: 132px;
  border-radius: 10px;
  background: #fff;
}

.qr-card span {
  font-weight: 700;
  font-size: 0.95rem;
}

.qr-card em {
  font-style: normal;
  color: var(--tea-light);
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: color-mix(in srgb, var(--rice) 70%, var(--paper));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-tag {
  margin-top: 0.65rem;
  color: var(--tea);
  font-size: 0.95rem;
}

.site-footer h3 {
  font-size: 0.85rem;
  color: var(--tea-light);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.site-footer .footer-grid a {
  display: block;
  color: var(--tea);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.site-footer .footer-grid a:hover {
  color: var(--ink);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--tea-light);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--ink);
}

/* Content pages (about / privacy / terms) */
.content-page {
  padding: 2.5rem 1.5rem 4rem;
}

.content-page-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 2rem 2.5rem;
}

.content-page h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content-page h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
}

.content-page h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.45rem;
}

.content-page p,
.content-page li {
  color: var(--tea);
  margin-bottom: 0.65rem;
}

.content-page ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.content-page a {
  color: var(--orange-press);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero-grid,
  .feature-row,
  .download-grid,
  .footer-grid,
  .gallery-rail,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .hero-visual {
    min-height: 380px;
  }

  .phone-stack {
    height: 380px;
  }

  .gallery-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid {
    justify-items: center;
    text-align: center;
  }

  .download-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-mascot {
    width: 72px;
    height: 72px;
    right: 0;
  }

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

  .gallery-rail {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .qr-row {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-back,
  .phone-front,
  .hero-mascot {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
