/* ==========================================================================
   邻家便利 · 单页落地页样式
   组织结构：变量 → 基础 → 通用组件 → 各区块 → 动效 → 响应式（就近书写）
   ★ 换品牌色：只改 :root 里的 --c-primary / --c-accent 两个变量即可
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --c-primary: #ff6a00;
  --c-primary-deep: #ef5f00;
  --c-primary-soft: #fff1e4;
  --c-accent: #1f9d63;
  --c-ink: #23282f;
  --c-ink-2: #5c6673;
  --c-ink-3: #8b95a3;
  --c-bg: #fffaf4;
  --c-surface: #ffffff;
  --c-line: #f1e7db;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(35, 40, 47, .05), 0 4px 14px rgba(35, 40, 47, .06);
  --shadow-md: 0 10px 30px rgba(255, 106, 0, .13), 0 2px 8px rgba(35, 40, 47, .07);
  --container: 1120px;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 锚点定位时给吸顶导航留出空间 */
section { scroll-margin-top: 76px; }

/* ---------- 3. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #ff8126, var(--c-primary));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 106, 0, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 106, 0, .36); }

.btn-ghost {
  background: var(--c-surface);
  border-color: var(--c-line);
  color: var(--c-ink);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn-sm { padding: 9px 20px; font-size: 14px; }

/* 区块通用留白与小标题 */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, #fff4e8, var(--c-bg)); }

.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.35; margin-bottom: 12px; }
.section-head p:not(.eyebrow) { color: var(--c-ink-2); font-size: 15px; }

/* ---------- 4. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 244, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  border-color: var(--c-line);
  box-shadow: 0 4px 20px rgba(35, 40, 47, .05);
}

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

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff8126, #ff5f00);
  color: #fff; font-size: 16px;
}
.logo-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary);
  border: 1px solid rgba(255, 106, 0, .45);
  border-radius: 6px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: 2px;
}

.nav { display: none; gap: 28px; font-size: 15px; color: var(--c-ink-2); }
.nav a { position: relative; padding: 4px 0; transition: color .2s ease; }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--c-primary); }
.nav a:hover::after { transform: scaleX(1); }

@media (min-width: 760px) {
  .nav { display: flex; }
}

/* ---------- 5. Hero 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
  background:
    radial-gradient(620px 320px at 88% -5%, rgba(255, 138, 40, .16), transparent 62%),
    radial-gradient(520px 340px at -5% 105%, rgba(31, 157, 99, .09), transparent 62%);
}

.hero-inner { display: grid; gap: 44px; }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--c-ink-2);
  box-shadow: var(--shadow-sm);
}
.status-badge .dot {
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 2.2s ease-out infinite;
}
.status-badge.is-closed .dot { background: #c2c8d0; animation: none; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 157, 99, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(31, 157, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 99, 0); }
}

.hero h1 {
  font-size: clamp(28px, 4.8vw, 44px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: .5px;
  margin: 22px 0 16px;
}

.hero .lead { color: var(--c-ink-2); font-size: 16px; max-width: 520px; margin-bottom: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { display: flex; gap: 40px; margin-top: 38px; }
.hero-stats strong { display: block; font-size: 26px; line-height: 1.2; color: var(--c-primary); }
.hero-stats span { font-size: 13px; color: var(--c-ink-2); }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* 悬浮小标签 */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: var(--c-surface);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(35, 40, 47, .16);
}
.chip::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--c-primary); }

/* 移动端：标签保持在图片范围内，防止横向溢出 */
.chip-1 { top: 14px; left: 14px; }
.chip-2 { top: 58px; right: 14px; }
.chip-3 { bottom: 14px; left: 14px; }

@media (min-width: 960px) {
  .chip-1 { top: 22px; left: -18px; }
  .chip-2 { top: auto; bottom: 72px; right: -14px; }
  .chip-3 { bottom: -16px; left: 40px; }
}

/* ---------- 6. 到店服务 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.service-card {
  padding: 22px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 0, .35);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 { font-size: 16px; margin-bottom: 8px; }
.service-card p { font-size: 13.5px; color: var(--c-ink-2); }

.service-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
  background: rgba(31, 157, 99, .09);
  border-radius: 6px;
}

/* ---------- 7. 今日特惠 ---------- */
.promos-grid { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .promos-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.promo-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
/* 右上角的装饰圆弧 */
.promo-card::after {
  content: "";
  position: absolute;
  top: -46px; right: -46px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--c-primary-soft);
}

.promo-badge {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border-radius: 999px;
}
.promo-card h3 { position: relative; font-size: 15px; color: var(--c-ink-2); font-weight: 600; }
.promo-price {
  position: relative;
  font-size: 30px;
  font-weight: 800;
  color: var(--c-primary-deep);
  line-height: 1.3;
  margin: 4px 0 10px;
}
.promo-note { position: relative; font-size: 13px; color: var(--c-ink-3); }

/* 高亮卡片：反色处理 */
.promo-card-featured { background: linear-gradient(160deg, #ff7f1f, #f26000); border-color: transparent; }
.promo-card-featured::after { background: rgba(255, 255, 255, .14); }
.promo-card-featured .promo-badge { background: rgba(255, 255, 255, .2); color: #fff; }
.promo-card-featured h3 { color: rgba(255, 255, 255, .85); }
.promo-card-featured .promo-price { color: #fff; }
.promo-card-featured .promo-note { color: rgba(255, 255, 255, .75); }

/* ---------- 8. 深夜时段横幅 ---------- */
.night-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  border-radius: var(--radius-lg);
  background: #141821;
}
.night-banner img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.night-overlay {
  position: relative;
  width: 100%;
  padding: 88px 32px 36px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 16, .82));
}
.night-overlay h2 { color: #fff; font-size: clamp(20px, 3vw, 28px); line-height: 1.45; margin-bottom: 10px; }
.night-overlay p { color: rgba(255, 255, 255, .82); font-size: 14.5px; max-width: 560px; }

@media (min-width: 760px) {
  .night-overlay { padding: 120px 48px 44px; }
}

/* ---------- 9. 会员福利 ---------- */
.member-card {
  display: grid;
  gap: 36px;
  padding: 36px 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}
@media (min-width: 860px) {
  .member-card { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 48px 52px; }
}

.member-copy .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.member-copy h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 22px; }

.member-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--c-ink-2);
}
.tick {
  width: 20px; height: 20px; flex: none;
  margin-top: 3px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(31, 157, 99, .12);
  color: var(--c-accent);
}
.tick svg { width: 11px; height: 11px; }

.member-qr { text-align: center; }
.qr-box {
  width: 180px; height: 180px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border: 2px dashed var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-ink-3);
  font-size: 13px;
  line-height: 1.6;
}
.qr-note { font-size: 12.5px; color: var(--c-ink-3); }

/* ---------- 10. 门店信息 ---------- */
.store-grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .store-grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
}

.info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--c-line);
}
.info-list li:first-child { padding-top: 0; }
.info-icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.info-icon svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-size: 15px; }
.info-list span { font-size: 14px; color: var(--c-ink-2); }
.info-list a { color: var(--c-primary); font-weight: 600; }

/* 地图占位卡：用 CSS 网格纹理模拟地图底图 */
.map-card {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, #f4ece1 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, #f4ece1 0 1px, transparent 1px 42px),
    #fdf9f3;
}
/* 一条“道路”装饰 */
.map-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 58%;
  height: 10px;
  background: #f0e3d2;
  transform: rotate(-6deg);
}

.map-inner { position: relative; text-align: center; padding: 24px; }
.map-pin {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(180deg, #ff8126, var(--c-primary));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 106, 0, .35);
}
.map-pin svg { width: 24px; height: 24px; }
.map-name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.map-addr { font-size: 13.5px; color: var(--c-ink-2); margin-bottom: 16px; }

/* ---------- 11. 页脚 ---------- */
.site-footer { margin-top: 48px; padding: 36px 0; background: #20242b; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer p { font-size: 13px; color: #9aa3b0; }
.footer-sub { color: #6b7482; }

/* ---------- 12. 滚动入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-badge .dot { animation: none; }
  .btn, .service-card { transition: none; }
}
