/* ============================================================
   情怀外卖 · 官网静态站点样式
   科技蓝主色 + 暖橙强调 / 移动优先 / 圆角 / 无外部依赖
   ============================================================ */

:root {
  --blue-900: #071a38;
  --blue-800: #0b2a57;
  --blue-700: #0e4ab0;
  --blue-600: #1668e3;
  --blue-500: #2e7bf6;
  --blue-200: #c3d9ff;
  --blue-100: #e8f1ff;
  --blue-50: #f4f8ff;
  --orange: #ff7a1a;
  --orange-dark: #e86400;
  --orange-soft: #fff1e5;
  --wx-green: #07c160;

  --bg: #f5f8fe;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --text: #12233f;
  --text-soft: #3d5375;
  --muted: #6b7f9e;
  --line: #dce6f5;
  --search-bg: #f1f3f6;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(11, 42, 87, 0.06);
  --shadow: 0 12px 32px rgba(11, 42, 87, 0.09);
  --shadow-lg: 0 24px 60px rgba(7, 26, 56, 0.18);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

/* 跟随系统的深色模式（可选，不影响打印与截图） */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1526;
    --surface: #101f36;
    --surface-2: #142b49;
    --text: #eaf2ff;
    --text-soft: #c2d4ee;
    --muted: #8fa6c4;
    --line: #244066;
    --search-bg: #1b3252;
    --blue-100: #17355f;
    --blue-50: #11294b;
    --orange-soft: #3a2410;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  height: 68px; max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; letter-spacing: -1px;
  box-shadow: 0 6px 16px rgba(22, 104, 227, 0.32);
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 0.5px; }
.brand-sub { font-size: 11px; color: var(--muted); line-height: 1.2; margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px;
  color: var(--text-soft); font-weight: 600; transition: 0.2s;
}
.nav-links a:hover { background: var(--blue-50); color: var(--blue-600); }
.nav-links a.active { background: var(--blue-100); color: var(--blue-700); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--blue-600); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(22, 104, 227, 0.24); transition: 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-700); transform: translateY(-1px); }
.nav-toggle { display: none; font-size: 22px; padding: 6px 10px; color: var(--text); }

/* ---------- 微信搜索框组件（全站核心记忆点） ---------- */
.wx-search {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 520px;
  background: var(--search-bg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
.wx-search:hover { border-color: var(--blue-200); box-shadow: var(--shadow); }
.wx-search:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }
.wx-search .wx-icon { width: 21px; height: 21px; flex-shrink: 0; color: #8a94a6; }
.wx-search .wx-text {
  flex: 1; min-width: 0; font-size: 17px; font-weight: 700;
  color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wx-search .wx-btn {
  flex-shrink: 0; padding: 10px 20px; border-radius: 999px;
  background: var(--blue-600); color: #fff; font-size: 14px; font-weight: 700;
}
.wx-search .wx-btn.wx-green { background: var(--wx-green); }
.wx-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
.wx-hint b { color: var(--orange); font-weight: 700; }
.wx-search.small { max-width: 400px; padding: 6px 6px 6px 16px; }
.wx-search.small .wx-text { font-size: 15px; }
.wx-search.small .wx-btn { padding: 8px 16px; font-size: 13px; }
.wx-search.on-dark { background: rgba(255,255,255,0.96); border-color: rgba(255,255,255,0.5); box-shadow: var(--shadow-lg); }
.wx-search.on-dark .wx-text { color: #12233f; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #071a38 0%, #0b3a86 48%, #1668e3 100%);
  color: #fff; padding: 84px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 420px at 82% 12%, rgba(46,123,246,0.55), transparent 65%),
    radial-gradient(520px 380px at 8% 90%, rgba(255,122,26,0.20), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.16; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.08); margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 {
  font-size: clamp(34px, 6.2vw, 64px); line-height: 1.18;
  font-weight: 900; letter-spacing: -1px; margin-bottom: 18px;
}
.hero h1 .accent { color: #ffb46b; }
.hero-lead {
  font-size: clamp(17px, 2.4vw, 22px); font-weight: 600;
  color: rgba(255,255,255,0.92); margin-bottom: 8px;
}
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.68); max-width: 560px; margin-bottom: 32px; }
.hero .wx-hint { color: rgba(255,255,255,0.72); }
.hero .wx-hint b { color: #ffb46b; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-chips span {
  padding: 9px 17px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
}
.hero-chips span.hot { background: rgba(255,122,26,0.18); border-color: rgba(255,180,107,0.55); color: #ffcf9e; }

.hero-visual {
  margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.hero-visual .hv {
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg); padding: 20px; backdrop-filter: blur(6px);
}
.hero-visual .hv b { display: block; font-size: 15px; margin-bottom: 6px; }
.hero-visual .hv small { color: rgba(255,255,255,0.68); font-size: 13px; line-height: 1.6; }

/* ---------- 品牌锚点条 ---------- */
.anchor-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.anchor-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 22px; padding: 22px 20px; max-width: var(--maxw); margin: 0 auto;
  font-size: 15px; color: var(--text-soft); font-weight: 600; text-align: center;
}
.anchor-inner strong { color: var(--blue-600); font-size: 19px; font-weight: 900; }
.anchor-inner .sep { color: var(--line); font-size: 20px; }
.anchor-inner .pill { background: var(--orange-soft); color: var(--orange-dark); padding: 5px 14px; border-radius: 999px; font-size: 13px; }

/* ---------- 通用标题 ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  color: var(--blue-600); text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(25px, 4vw, 36px); font-weight: 900; letter-spacing: -0.5px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); transition: 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.card-icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); font-size: 22px; font-weight: 800;
  margin-bottom: 18px;
}
.card-icon.orange { background: var(--orange-soft); color: var(--orange-dark); }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ---------- 三步下单 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 26px 26px; box-shadow: var(--shadow-sm);
}
.step .num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-600); color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -16px; top: 42px; z-index: 2;
  color: var(--blue-500); font-size: 22px; font-weight: 800;
}

/* ---------- 商家 ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.field {
  flex: 1 1 240px; display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 0 14px; height: 46px;
}
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.field svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft);
  transition: 0.2s;
}
.chip:hover { border-color: var(--blue-200); color: var(--blue-600); }
.chip.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.25s;
}
.shop:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shop-cover {
  height: 108px; display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600); font-weight: 900;
}
.shop-cover.c2 { background: linear-gradient(135deg, #fff4e9, #ffe1c4); color: var(--orange-dark); }
.shop-cover.c3 { background: linear-gradient(135deg, #eafaf1, #d3f2e2); color: #0f9d58; }
.shop-body { padding: 18px; }
.shop-body h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.shop-meta { font-size: 13px; color: var(--muted); }
.shop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.shop-tags span { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); }
.shop-tags span.o { background: var(--orange-soft); color: var(--orange-dark); }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--muted); }

.note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--orange-soft); border: 1px solid #ffdcc0;
  border-radius: var(--radius-md); padding: 14px 16px; font-size: 13px;
  color: var(--orange-dark); margin-bottom: 22px; line-height: 1.7;
}
.note.blue { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }

/* ---------- 场景条 ---------- */
.scene-band {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: #fff; border-radius: var(--radius-xl); padding: 44px 36px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
  box-shadow: var(--shadow);
}
.scene-band h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; margin-bottom: 10px; }
.scene-band p { color: rgba(255,255,255,0.75); font-size: 15px; }
.scene-list { display: grid; gap: 10px; }
.scene-list div {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-md); padding: 12px 18px; font-weight: 600; font-size: 15px;
}
.scene-list div b { color: #ffb46b; }

/* ---------- 制度页 / 内容页 ---------- */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 24px; font-weight: 900; margin: 40px 0 14px; }
.prose h3 { font-size: 18px; font-weight: 800; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.prose ul { padding-left: 20px; list-style: disc; margin: 10px 0; }
.prose li { margin: 5px 0; }
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.doc-list div {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 18px; font-weight: 700; font-size: 15px;
}
.doc-list div small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 4px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue-900); color: #fff; padding: 56px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; }
.site-footer h4 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.site-footer p, .site-footer li { color: rgba(255,255,255,0.62); font-size: 13px; line-height: 1.9; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.footer-slogan { color: #ffb46b !important; font-size: 15px !important; font-weight: 700; margin-bottom: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 38px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  color: rgba(255,255,255,0.45); font-size: 12px;
}

/* ---------- 按钮 / 提示 ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 700;
  transition: 0.2s;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(22,104,227,0.25); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text-soft); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: var(--blue-900); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: 0.28s; z-index: 99; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.back-top {
  position: fixed; right: 20px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--blue-600);
  box-shadow: var(--shadow); display: none; place-items: center; font-size: 18px; z-index: 40;
}
.back-top.show { display: grid; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .steps, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scene-band { grid-template-columns: 1fr; padding: 32px 26px; }
  .step:not(:last-child)::after { display: none; }
  .hero-visual { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .nav-inner { height: 60px; gap: 10px; }
  .brand-name { font-size: 17px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; }
  .nav-cta { margin-left: 0; padding: 7px 12px; font-size: 12px; }
  .nav-cta .long { display: none; }
  .hero { padding: 60px 0 70px; }
  .hero .wx-search { padding-left: 16px; }
  .wx-search .wx-text { font-size: 15px; }
  .wx-search .wx-btn { padding: 9px 15px; font-size: 13px; }
  .grid-3, .grid-2, .steps, .shop-grid, .doc-list, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .anchor-inner { font-size: 14px; gap: 8px 12px; }
  .anchor-inner strong { font-size: 17px; }
  .anchor-inner .sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .back-top, .toast { display: none !important; }
  body { background: #fff; }
}
