/* ==========================================================================
   点单网 · 官网样式
   ========================================================================== */

:root {
  --red: #f5222d;
  --red-deep: #e0121d;
  --orange: #ff7a45;
  --amber: #ffb03a;
  --ink: #18191d;
  --muted: #6b7078;
  --warm-1: #fff7f0;
  --warm-2: #ffe6d8;
  --blue-1: #2f6bff;
  --blue-2: #5aa7ff;
  --card: #ffffff;
  --line: #f0e6e0;
  --radius: 20px;
  --shadow: 0 18px 44px rgba(224, 78, 44, .12);
  --shadow-soft: 0 10px 30px rgba(24, 25, 29, .08);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--warm-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  box-shadow: 0 12px 26px rgba(245, 34, 45, .32);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(245, 34, 45, .42); }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }

.btn-white {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 26px rgba(24, 25, 29, .16);
}

.btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn .btn-sm-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn .btn-sm-label small {
  font-size: 11px;
  font-weight: 500;
  opacity: .82;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 246, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 205, 190, .5);
}
.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px rgba(245,34,45,.25); }
.brand b { color: var(--ink); }
.brand b span { color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; color: #54585f; font-weight: 500; transition: color .18s; }
.nav-links a:hover { color: var(--red); }
.nav .btn { height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 8%, #ffd3c0 0%, rgba(255,211,192,0) 46%),
    radial-gradient(90% 80% at 4% 90%, #ffe0c9 0%, rgba(255,224,201,0) 48%),
    linear-gradient(165deg, #fff8f2 0%, #ffe9db 58%, #ffd9c6 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px; right: -120px; bottom: -160px;
  background: radial-gradient(circle at 40% 40%, rgba(255,122,69,.5), rgba(255,122,69,0) 70%);
}
.hero::after {
  width: 300px; height: 300px; left: -120px; top: -90px;
  background: radial-gradient(circle at 50% 50%, rgba(255,176,58,.4), rgba(255,176,58,0) 72%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  padding: 64px 0 78px;
  min-height: calc(100vh - 66px);
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.hero-copy h1 {
  margin: 22px 0 6px;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero-copy h1 em { font-style: normal; color: var(--red); }
.hero-copy .sub {
  font-size: 20px;
  color: #574f47;
  margin: 0 0 8px;
  font-weight: 500;
  letter-spacing: 3px;
}
.hero-copy .desc {
  max-width: 460px;
  color: #7b6a5c;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.hero-qr img { width: 92px; height: 92px; }
.hero-qr .qr-txt { display: flex; flex-direction: column; gap: 2px; }
.hero-qr .qr-txt strong { font-size: 15px; color: var(--ink); }
.hero-qr .qr-txt span { font-size: 12px; color: var(--muted); }

/* phone visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-stage {
  position: relative;
  width: min(100%, 460px);
}
.phone-stage img.phone {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(150, 60, 30, .26));
  -webkit-mask-image: radial-gradient(ellipse 82% 88% at 50% 48%, #000 52%, transparent 90%);
  mask-image: radial-gradient(ellipse 82% 88% at 50% 48%, #000 52%, transparent 90%);
}

.chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(224, 78, 44, .28);
  animation: float 5.5s ease-in-out infinite;
}
.chip.c1 { top: 6%; right: -2%; background: linear-gradient(135deg,#ff7a45,#ffb03a); animation-delay: .1s; }
.chip.c2 { top: 24%; left: -6%; transform: rotate(-7deg); background: linear-gradient(135deg,#f5222d,#ff6a5a); animation-delay: .5s; }
.chip.c3 { top: 48%; right: -7%; transform: rotate(6deg); background: linear-gradient(135deg,#ff4d4d,#ff8a5b); animation-delay: .9s; }
.chip.c4 { bottom: 12%; left: -4%; transform: rotate(5deg); background: linear-gradient(135deg,#ff9933,#ffc46b); animation-delay: 1.3s; }
.chip.c5 { bottom: 30%; right: -2%; transform: rotate(-6deg); background: linear-gradient(135deg,#e0121d,#ff6a5a); animation-delay: 1.7s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Category strip ---------- */
.cats { padding: 44px 0 6px; }
.cats-title {
  text-align: center;
  color: #8a6f5f;
  font-size: 14px;
  letter-spacing: 4px;
  margin: 0 0 26px;
}
.cats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}
.cat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 600;
  color: #4d4640;
}
.cat .dot {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 15px;
}

/* ---------- Sections ---------- */
section.block { padding: 84px 0 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.section-head h2 { margin: 14px 0 12px; font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0; }

.features { background: #fff; }
.features .container { padding-top: 84px; padding-bottom: 90px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-size: 28px;
  margin-bottom: 18px;
  background: #fff1e8;
}
.feature-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ---------- Download ---------- */
.download {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(100% 120% at 15% 12%, rgba(90,167,255,.5) 0%, rgba(90,167,255,0) 48%),
    radial-gradient(120% 110% at 92% 92%, rgba(47,107,255,.55) 0%, rgba(47,107,255,0) 52%),
    linear-gradient(145deg, #2a5cff 0%, #3f7ffb 55%, #5aa7ff 100%);
  color: #fff;
}
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.download .inner { position: relative; z-index: 2; text-align: center; padding: 96px 0; }
.download h2 { margin: 0 0 14px; font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: 1px; }
.download p.lead { margin: 0 auto 40px; max-width: 620px; font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.92); }
.download-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 44px; }
.download .btn-lg { height: 62px; padding: 0 34px; font-size: 17px; border-radius: 999px; }
.download .txt { color: rgba(255,255,255,.82); font-size: 13px; letter-spacing: 1px; margin-top: 6px; }
.download .txt a { text-decoration: underline; }

.download-qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  padding: 22px 22px 18px;
  border-radius: 18px;
  box-shadow: 0 24px 52px rgba(20,40,90,.35);
}
.download-qr img { width: 150px; height: 150px; }
.download-qr strong { font-size: 16px; }
.download-qr span { font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: #15161a; color: #b9bdc7; padding: 56px 0 34px; }
.footer .container { display: flex; flex-direction: column; gap: 26px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer .brand { color: #fff; }
.footer .brand b span { color: var(--orange); }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; }
.footer-links a { color: #b9bdc7; transition: color .18s; }
.footer-links a:hover { color: #fff; }
.footer-mid { max-width: 640px; color: #8f959f; font-size: 13px; line-height: 1.9; }
.footer-bottom {
  border-top: 1px solid #2a2c33;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #7c828c;
  font-size: 13px;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; padding: 46px 0 60px; min-height: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-stage { max-width: 360px; }
  .chip.c2 { left: -2%; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-qr { width: 100%; justify-content: center; }
  .download-actions { flex-direction: column; align-items: center; }
  .download .btn-lg { width: min(100%, 340px); }
  .footer-bottom { flex-direction: column; }
}
