:root {
  --red: #c8102e;
  --red-dark: #9d0c23;
  --gold: #e8b64c;
  --ink: #1c1b1a;
  --body: #4a4744;
  --line: #e7e2dc;
  --paper: #fffdfa;
  --paper-alt: #faf5ee;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 16px;
  --shadow: 0 2px 4px rgba(28, 27, 26, .04), 0 12px 28px rgba(28, 27, 26, .07);
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  /* clip 而非 hidden:hidden 会造出滚动容器,吸顶页头的 sticky 会失效 */
  overflow-x: clip;
  /* 手机点按不留灰块,改用品牌色轻微反馈 */
  -webkit-tap-highlight-color: rgba(200, 16, 46, .12);
}

/* 锚点跳转别被吸顶页头盖住标题 */
[id] { scroll-margin-top: 84px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 800; }
/* balance 让窄屏标题两行长度接近,不留「门口」这样的孤字尾行 */
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.12rem; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.06rem; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .32); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-light { background: #fff; color: var(--red); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.ico-wa { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 250, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.09rem; letter-spacing: .01em; }
.brand-text small { color: #8a837b; font-size: .78rem; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: .96rem; }
.site-nav a { color: var(--body); font-weight: 600; }
.site-nav a:hover { color: var(--red); text-decoration: none; }
.header-cta { margin-left: 8px; }

/* 手机专用横滑快捷导航;桌面用 .site-nav,这条隐藏 */
.chip-nav { display: none; }
.chip-nav a {
  flex: none;
  display: inline-flex; align-items: center;
  min-height: 44px;                 /* 拇指点得到 */
  padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--body); font-size: .9rem; font-weight: 600;
  scroll-snap-align: start;
}
.chip-nav a:active { background: #fdeff1; border-color: var(--red); color: var(--red); }

/* ---------- 首屏 ---------- */
.hero {
  background:
    radial-gradient(1000px 460px at 88% -6%, rgba(232, 182, 76, .22), transparent 62%),
    linear-gradient(180deg, #fff8ef 0%, var(--paper) 78%);
  padding: clamp(38px, 6vw, 76px) 0 clamp(44px, 6vw, 84px);
}
/* 桌面:左栏文案上下分块,右栏门店照;手机:标题 → 照片 → 文案按钮(见响应式段) */
.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  grid-template-areas: "head shot" "rest shot" "badges shot";
  column-gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.hero-head { grid-area: head; }
.hero-rest { grid-area: rest; }
.hero-badges { grid-area: badges; }
.hero-shot { grid-area: shot; align-self: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  background: rgba(200, 16, 46, .09); color: var(--red);
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 { margin-bottom: .35em; text-wrap: balance; }
.hl {
  background: linear-gradient(180deg, transparent 62%, rgba(232, 182, 76, .55) 62%);
  padding: 0 .08em;
}
.lede { font-size: 1.09rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; font-size: .95rem; font-weight: 600; color: var(--ink); }
.hero-badges li { display: flex; align-items: center; gap: 7px; }
.hero-badges li::before {
  content: "✓"; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}
.hero-shot { margin: 0; }
.hero-shot img { border-radius: 22px; box-shadow: 0 18px 44px rgba(28, 27, 26, .16); }
.hero-shot figcaption, .shot figcaption, .hero-shot figcaption {
  margin-top: 12px; font-size: .9rem; color: #8a837b; text-align: center;
}

/* ---------- 区块 ---------- */
.section { padding: clamp(48px, 6.5vw, 84px) 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; }
.section-sub { text-align: center; color: #8a837b; margin: -.3em auto 2.4em; max-width: 40em; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 12px rgba(28, 27, 26, .06), 0 20px 40px rgba(28, 27, 26, .1); }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(140deg, #fff1e4, #ffe0e5);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-ico svg {
  width: 27px; height: 27px;
  fill: none; stroke: var(--red); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.card p { margin: 0; font-size: .97rem; }

.showcase .shot { margin: 0; }
.showcase img { border-radius: var(--radius); box-shadow: var(--shadow); }

.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 6px 12px rgba(28, 27, 26, .06), 0 20px 40px rgba(28, 27, 26, .1); }
.tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tile-body { padding: 18px 20px 22px; }
.tile-body h3 { margin-bottom: .35em; }
.tile-body p { margin: 0; font-size: .93rem; color: #7d766e; }

/* ---------- 下单三步 ---------- */
.steps { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); position: relative; }
.step-no {
  position: absolute; top: -18px; left: 24px;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(200, 16, 46, .3);
}
.step h3 { margin-top: 14px; }
.step p { margin: 0; font-size: .97rem; }
.wa-num { margin-top: 14px; font-size: .95rem; color: #8a837b; }
.wa-num a { color: var(--wa-dark); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0 20px; box-shadow: 0 1px 2px rgba(28, 27, 26, .03);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 34px 17px 0; position: relative;
  font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--red); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; font-size: .97rem; }

/* ---------- 结尾行动条 ---------- */
.cta-band { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; padding: clamp(40px, 5vw, 60px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .92; }

/* ---------- 页脚 ---------- */
.site-footer { background: #221f1d; color: #b8b1a8; padding: 46px 0 22px; font-size: .93rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong { display: block; color: #fff; font-size: 1.05rem; }
.footer-brand span { display: block; font-size: .8rem; letter-spacing: .03em; }
.footer-brand .reg { color: #7d766e; margin-top: 4px; }
.footer-contact p { margin: 0 0 6px; }
.footer-contact a { color: var(--wa); font-weight: 700; }
.copyright { text-align: center; margin: 34px 0 0; padding-top: 18px; border-top: 1px solid #34302c; font-size: .84rem; color: #7d766e; }

/* ---------- 悬浮 WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--wa); color: #fff; font-weight: 700;
  padding: 13px 20px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
}
.wa-float:hover { background: var(--wa-dark); text-decoration: none; }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- 进场动画 ---------- */
/* 只有确认 JS 可用(html.js 由页头内联脚本打上)才隐藏,否则脚本失败就成白屏 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .site-nav { display: none; }
  /* 手机首屏顺序:标题 → 四大卖点 → 门店照 → 说明与按钮
     四个卖点是客人最想知道的,排在照片前面,一屏就看完 */
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "head" "badges" "shot" "rest"; row-gap: 18px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .step-no { top: -16px; }

  /* 横滑胶囊导航:一屏放不下就滑,不做汉堡菜单——少一次点击。
     整块页头不吸顶,只让这条吸顶,小屏才不会被顶部栏吃掉六分之一屏。 */
  .site-header { position: static; }
  .chip-nav {
    display: flex; gap: 8px;
    position: sticky; top: 0; z-index: 41;
    padding: 9px 16px;
    background: rgba(255, 253, 250, .95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .chip-nav::-webkit-scrollbar { display: none; }
}

/* ---------- 手机(主场景) ---------- */
@media (max-width: 760px) {
  body {
    font-size: 16.5px;
    /* 给底部常驻行动栏留位,含 iPhone 底部安全区 */
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  [id] { scroll-margin-top: 74px; }

  .wrap { padding: 0 16px; }
  .header-inner { min-height: 58px; gap: 12px; }
  .brand-logo { width: 38px; height: 38px; border-radius: 10px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { display: none; }
  /* 底部行动栏常驻,页头再放一个绿按钮只是重复占地方 */
  .header-cta { display: none; }

  .hero { padding: 22px 0 34px; }
  h1 { font-size: clamp(1.72rem, 8.4vw, 2.3rem); }
  .eyebrow { font-size: .8rem; padding: 5px 12px; margin-bottom: 11px; }
  .lede { font-size: 1rem; }
  .hero-shot img { border-radius: 16px; box-shadow: 0 10px 26px rgba(28, 27, 26, .14); }
  .hero-shot figcaption, .shot figcaption { font-size: .82rem; margin-top: 9px; }
  .hero-actions { margin: 0; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  /* 底部常驻栏就是 WhatsApp 入口,首屏再放一个绿按钮会跟它贴在一起 */
  .hero-actions .btn-wa { display: none; }

  /* 四个卖点做成 2×2 方格:一屏看完,不用横向扫 */
  .hero-badges {
    display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px;
    font-size: .95rem; margin: 0;
  }
  .hero-badges li::before { width: 21px; height: 21px; }

  .section { padding: 40px 0; }
  .section-sub { font-size: .95rem; margin-bottom: 1.8em; }

  /* 优势卡单列:每条都是要读的字,双列会挤成豆腐块 */
  .grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; padding: 18px; align-items: start; }
  .card-ico { margin-bottom: 0; grid-row: span 2; }
  .card h3 { margin-bottom: .25em; align-self: center; }
  .card p { grid-column: 2; font-size: .94rem; }

  /* 品类图保持双列:手机逛货架就是这个手势 */
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { border-radius: 14px; }
  .tile-body { padding: 12px 13px 15px; }
  .tile-body h3 { font-size: 1rem; }
  .tile-body p { font-size: .82rem; line-height: 1.6; }

  .grid-2 { grid-template-columns: 1fr; }
  .showcase img { border-radius: 14px; }

  .steps { gap: 14px; margin-bottom: 22px; }
  .step { padding: 24px 18px 20px; }
  /* 同理:底部栏已常驻,这里的绿按钮去掉,留可点的号码 */
  #how .center .btn-wa { display: none; }
  .wa-num { margin-top: 0; }
  .wa-num a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.12rem; }
  .cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-inner .btn { width: 100%; }

  /* 点按目标一律 ≥48px 高 */
  .faq details { padding: 0 16px; }
  .faq summary { min-height: 48px; display: flex; align-items: center; padding: 12px 30px 12px 0; }

  .footer-inner { flex-direction: column; gap: 22px; }
  .copyright { margin-top: 26px; }
  /* 页脚号码是要按的,撑到 44px 并放大字号 */
  .footer-contact a {
    display: inline-flex; align-items: center; min-height: 44px;
    margin-left: 4px;
    font-size: 1.08rem; letter-spacing: .02em;
  }
  .brand { min-height: 44px; }

  /* 悬浮按钮 → 整条底部行动栏:拇指区最好按的位置 */
  .wa-float {
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    justify-content: center;
    padding: 15px; border-radius: 14px;
    font-size: 1.05rem;
    box-shadow: 0 8px 26px rgba(28, 27, 26, .22);
  }
  .wa-float span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .tile:hover { transform: none; }
}
