/* ============================================================
   即食即配 官网样式 — Apple 克制风
   主色 #5B6AF0 | 中性灰阶 | 系统字体 | 段落前后透白
   ============================================================ */

:root {
  --accent: #5B6AF0;
  --accent-soft: #eef0ff;
  --accent-grad: linear-gradient(135deg, #5b6af0 0%, #7c5cf0 100%);
  --ink: #0a0e1a;
  --ink-2: #3c4257;
  --ink-3: #8a93a6;
  --paper: #ffffff;
  --tint: #f2f3f9;
  --line: #eaebf2;
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-dot {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent-grad);
  box-shadow: 0 4px 12px rgba(91, 106, 240, 0.35);
}
.brand-name { letter-spacing: 0.02em; }

.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 15px; color: var(--ink-2);
  padding: 6px 2px; position: relative;
  transition: color 0.2s var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: none;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 6px;
}
.nav-toggle span { height: 2px; width: 24px; background: var(--ink); border-radius: 2px; transition: 0.25s var(--ease-out); }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-cta { background: var(--paper); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase;
}
.eyebrow.center, .section-title { text-align: center; }

.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700; line-height: 1.2;
  margin: 18px auto 56px; max-width: 20em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 88px;
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(124, 92, 240, 0.16), transparent 60%),
    radial-gradient(900px 480px at 0% 0%, rgba(91, 106, 240, 0.10), transparent 55%),
    var(--paper);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-title {
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.04;
}
.hero-sub {
  margin-top: 24px; font-size: 18px; color: var(--ink-2);
  max-width: 30em;
}
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.microcopy { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
  text-align: center;
}
.btn-primary {
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 10px 30px rgba(91, 106, 240, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero 视觉卡 */
.hero-visual { display: flex; justify-content: center; }
.phone-card {
  width: min(320px, 100%); border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: linear-gradient(180deg, #ffffff, #f6f7ff);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(22, 24, 60, 0.12);
  /* 载入时一次性轻微上浮，之后静止；避免无限循环浮动造成的异常抖动 */
  animation: rise 0.7s var(--ease-out) both;
}
.phone-top { font-weight: 700; margin-bottom: 22px; color: var(--ink); }
.step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
  font-size: 15px; color: var(--ink-2);
}
.step:last-of-type { border-bottom: none; }
.step-no {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.phone-badge {
  margin-top: 22px; padding: 10px 14px; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 13px; text-align: center;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 真相卡片 ---------- */
.truth-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.truth-card {
  border-radius: var(--radius-md); padding: 32px 28px;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.truth-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(22, 24, 60, 0.08); }
.truth-num { font-size: 13px; font-weight: 700; color: var(--accent); }
.truth-card h3 { margin: 10px 0 8px; font-size: 20px; font-weight: 700; }
.truth-card p { color: var(--ink-2); font-size: 15px; }

/* ---------- 功能网格 ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  border-radius: var(--radius-md); padding: 28px 26px;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(22, 24, 60, 0.08); }
.icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- 双栏（商家/院校） ---------- */
.dual-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.dual-card {
  border-radius: var(--radius-md); background: var(--paper);
  border: 1px solid var(--line); padding: 32px 30px;
}
.dual-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.dual-card ul { display: grid; gap: 12px; }
.dual-card li {
  padding-left: 22px; position: relative; color: var(--ink-2); font-size: 15px;
}
.dual-card li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- 保障 ---------- */
.assure-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.assure-card {
  border-radius: var(--radius-md); padding: 30px 26px;
  background: var(--paper); border: 1px solid var(--line);
  text-align: center;
}
.assure-card .icon { margin: 0 auto 16px; }
.assure-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.assure-card p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- CTA ---------- */
.section-cta { padding: 110px 0; background: var(--tint); }
.cta-title {
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 800;
  text-align: center; margin-bottom: 44px; line-height: 1.2;
}
.cta-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto;
}
.cta-block {
  border-radius: var(--radius-lg); padding: 36px 32px;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.cta-block h3 { font-size: 22px; font-weight: 700; }
.cta-block p { color: var(--ink-2); font-size: 15px; max-width: 24em; }
.cta-block .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdd3e0; }
.footer-inner { padding-top: 56px; }
.footer-top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { font-size: 14px; color: #cdd3e0; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; padding: 22px 0 34px; font-size: 13px; color: var(--ink-3);
}
.footer-bottom a { color: #9fb0f5; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 滚动揭示 ---------- */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .truth-grid, .feature-grid, .assure-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 620px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0; padding: 12px 24px 20px;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.28s var(--ease-out);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px dashed var(--line); }
  .nav a::after { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .truth-grid, .feature-grid, .assure-grid, .dual-grid, .cta-pair { grid-template-columns: 1fr; }
  .hero { padding: calc(var(--header-h) + 36px) 0 60px; }
  .footer-top { flex-direction: column; }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 焦点可见性 */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}