/* ============================================================
   7N lux 智能家居官网 · 手机端样式
   全部数值取自设计稿（首页.jpg 2348px 内容宽 / 参考图 946px@2x）
   换算：CSS px = 设计稿 px ÷ 4.964 = 参考图 px ÷ 2
   ============================================================ */
:root {
  --accent: #b89b6e;
  --hd: #1C1C1C;            /* 顶栏 */
  --dark: #1C1C1C;          /* 六大卖点 / 节律光 */
  --ink: #1a1a1a;
  --body: #333333;
  --sub: #9a9a9e;
  --line: #ececee;
  --bg: #f6f6f8;            /* 轮播区 */
  --bg2: #f3f2f7;           /* 设备矩阵 / 关于我们 */
  --card: #ffffff;
  --hd-h: 71px;
  --pad: 36px;              /* 卡片 / 图片左右边距 */
  --pad-t: 40px;            /* 文字块左右边距 */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #e6e6e9;
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Hiragino Sans GB",
    "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 400; }

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, .12);
}

/* ------------------------------------------------------------ 顶栏（设计稿 66px） */
.hd {
  position: fixed;
  top: 0; left: 50%;
  width: 100%; max-width: 480px;
  height: var(--hd-h);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: var(--hd);
  color: #fff;
  z-index: 60;
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.hd.scrolled { background: rgba(28, 28, 28, .97); box-shadow: 0 8px 26px rgba(0, 0, 0, .24); }
.hd__brand { display: flex; align-items: center; }
.hd__logo { height: var(--logo-h, 24px); width: auto; max-width: 190px; object-fit: contain; }
.hd__name { font-size: 22px; font-weight: 500; letter-spacing: .02em; }
.hd__title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: 56%;
  font-size: 16.5px; font-weight: 400; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd__btn {
  position: relative;
  width: 44px; height: 44px;
  margin-right: -12px;
  display: grid; place-items: center;
  color: #fff;
  border-radius: 50%;
  overflow: hidden;
  transition: transform .25s var(--ease), background .25s;
}
.hd__btn:active { transform: scale(.9); background: rgba(255, 255, 255, .08); }
.hd > .hd__btn:first-child { margin-left: -8px; }
/* 汉堡：设计稿 20×20，三条 2px */
.hd__burger { display: block; width: 20px; }
.hd__burger i { display: block; height: 2px; background: #fff; border-radius: 1px; }
.hd__burger i + i { margin-top: 6px; }
.hd__btn .ico { width: 28px; height: 28px; }

/* 图标容器 */
.ico { display: inline-flex; width: 24px; height: 24px; flex: none; align-items: center; justify-content: center; }
.ico svg { width: 100%; height: 100%; display: block; }
.ico--img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ------------------------------------------------------------ 视图与动效 */
.view { padding-top: var(--hd-h); min-height: 100vh; }
.view--home { padding-top: var(--hd-h); }
.view--fade { animation: viewIn .55s var(--ease-out) both; }
.view--slide { animation: slideIn .5s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: .35; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomSlow { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
@keyframes iconPop { from { transform: scale(.7) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.rv { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .view--fade, .view--slide { animation: none; }
}

/* 启动骨架 */
.boot { height: calc(100vh - var(--hd-h)); display: grid; place-content: center; gap: 18px; background: var(--dark); color: #fff; }
.boot__logo { font-size: 26px; letter-spacing: .08em; text-align: center; opacity: .9; }
.boot__bar { width: 120px; height: 2px; background: rgba(255, 255, 255, .18); border-radius: 2px; overflow: hidden; margin: 0 auto; }

/* ------------------------------------------------------------ Hero（参考图 946×1555） */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 946 / 1555;
  overflow: hidden;
  color: #fff;
  background: #1b1b1b;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: zoomSlow 9s var(--ease-out) both; }
.hero__mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .03) 34%, rgba(0, 0, 0, .06) 66%, rgba(0, 0, 0, .34) 100%); }
.hero__title {
  position: absolute; left: 0; right: 0; top: 22%;
  text-align: center;
  font-size: min(40px, 8.46vw); font-weight: 700; line-height: 1.2;
  letter-spacing: .004em; text-indent: .004em;
  animation: fadeUp 1s var(--ease-out) .18s both;
}
.hero__p {
  position: absolute; left: 0; right: 0; top: 30.1%;
  text-align: center;
  font-size: min(15px, 3.17vw); font-weight: 400; line-height: 1.56;
  letter-spacing: .07em; text-indent: .07em;
  animation: fadeUp 1s var(--ease-out) .3s both;
}
.hero__cta {
  position: absolute; left: 50%; bottom: 9.5%;
  transform: translateX(-50%);
  width: min(142px, 30vw); height: min(40px, 8.46vw);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 999px;
  background: transparent;
  font-size: min(15px, 3.17vw); letter-spacing: .14em; text-indent: .14em;
  overflow: hidden;
  animation: fadeOnly 1s var(--ease-out) .5s both;
  transition: transform .25s var(--ease), background .25s;
}
.hero__cta:active { transform: translateX(-50%) scale(.96); background: rgba(255, 255, 255, .14); }

/* ------------------------------------------------------------ 六大卖点（参考图 2） */
.features {
  background: var(--dark);
  padding: 80px 0 82px;
  display: grid; grid-template-columns: 1fr 1fr;
  row-gap: 60px;
  text-align: center;
  color: #fff;
}
.feat { display: flex; flex-direction: column; align-items: center; }
.feat .ico { width: 40px; height: 40px; margin-bottom: 25.5px; }
.feat .ico--img img { width: 40px; height: 40px; }
.feat__t { font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.feat__d { margin-top: 4px; font-size: 11px; font-weight: 400; color: #a8a8a8; line-height: 1.5; letter-spacing: .02em; }

/* ------------------------------------------------------------ 通用区块标题 */
.sec { position: relative; }
.sec__head { padding: 0 var(--pad-t); }
.sec__h { font-size: 28px; font-weight: 700; line-height: 35px; letter-spacing: .01em; }
.sec__p { margin-top: 16px; font-size: 14px; font-weight: 400; line-height: 25px; color: var(--body); letter-spacing: .01em; text-align: left; }
.sec--dark { background: var(--dark); color: #fff; }
.sec--dark .sec__p { color: #f0f0f0; }
.sec--light { background: var(--bg); }
.sec--grey { background: var(--bg2); }

/* ------------------------------------------------------------ 轮播（参考图 3 / 5） */
.car-sec { padding: 72px 0 52px; }
.car-sec .sec__head { min-height: 195px; }
.car {
  position: relative; margin-top: 0;
  display: flex; gap: 19px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  --cw: min(350px, 74vw);
  padding: 14px calc(50% - var(--cw) / 2) 26px 30px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.car::-webkit-scrollbar { display: none; }
.car__item {
  --cw: min(350px, 74vw);
  flex: 0 0 var(--cw);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(38, 34, 28, .07);
}
.car__media { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.car__item.is-active .car__media img { transform: scale(1.02); }
.car__bubbles { position: absolute; left: 35px; bottom: 47px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.bubble { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 9px; background: rgba(255, 255, 255, .95); color: #111; font-size: 12.5px; line-height: 1.5; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); opacity: 0; transform: translateY(10px) scale(.94); }
.car__item.is-active .bubble { animation: bubbleIn 1.4s cubic-bezier(.22, .9, .3, 1) both; }
.car__item.is-active .bubble:nth-child(1) { animation-delay: .6s; }
.car__item.is-active .bubble:nth-child(2) { animation-delay: 1.6s; }
.bubble .ico { width: 17px; height: 17px; color: #111; }
.car__body { padding: 22px 16px 37px; text-align: center; background: #fff; }
.car__t { font-size: 17px; font-weight: 700; letter-spacing: .02em; line-height: 1.35; }
.car__d { margin-top: 16px; font-size: 11px; font-weight: 400; color: #9c9c9c; line-height: 1.6; letter-spacing: .01em; }
.dots { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 18px; }
.dot { width: 20px; height: 3px; border-radius: 2px; background: #dedee2; transition: background .4s var(--ease), width .4s var(--ease); }
.dot.on { width: 27px; background: #1a1a1a; }

/* ------------------------------------------------------------ 节律光（参考图 4） */
.img-sec { padding: 74px 0 78px; }
.img-sec__pic { margin: 44px var(--pad) 0; overflow: hidden; background: #262626; }
.img-sec__pic img { width: 100%; height: auto; aspect-ratio: 400 / 490; object-fit: cover; display: block; transition: transform 1.4s var(--ease-out); }
.img-sec__pic.in img { transform: scale(1.02); }

/* ------------------------------------------------------------ 设备矩阵（参考图 6） */
.dev-sec { padding: 72px 0 32px; }
.devs { margin-top: 52px; padding: 0 var(--pad); display: flex; flex-direction: column; gap: 14px; }
.dev-row { display: flex; gap: 8px; }
.dev {
  flex: 1 1 0; min-width: 0;
  background: #fff; border-radius: 10px;
  padding: 16px 3px 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 18px; text-align: center;
  box-shadow: none;
  transition: transform .35s var(--ease);
}
.dev:active { transform: scale(.97); }
.dev .ico { width: 100%; height: 33px; }
.dev .ico--img img { width: auto; height: 100%; max-width: 92%; object-fit: contain; }
.dev__l { font-size: 10px; font-weight: 400; color: #9a9a9e; line-height: 1.25; letter-spacing: 0; }
.dev-row--4 .dev { min-height: 90px; }
.dev-row--5 .dev { min-height: 84px; padding: 13px 3px 8px; gap: 15px; }
.dev-row--5 .dev .ico { height: 28px; }
.dev--wide { flex-grow: 1.36; }

/* ------------------------------------------------------------ 关于我们（参考图 7） */
.about { padding: 78px 0 100px; background: #f3f2f7; }
.about .sec__h { font-size: min(27px, 5.8vw); line-height: 34px; }
.about .sec__p { margin-top: 27px; }
.cards { margin-top: 57px; padding: 0 var(--pad); display: grid; gap: 17px; }
.ccard {
  display: flex; align-items: center; gap: 46px;
  background: #fff; border-radius: 10px;
  padding: 30px 24px 30px 28px;
  box-shadow: none;
  transition: transform .35s var(--ease);
}
.ccard:active { transform: translateY(-2px); }
.ccard .ico { width: 34px; height: 34px; }
.ccard__t { font-size: min(15px, 3.4vw); font-weight: 700; letter-spacing: .02em; line-height: 1.25; }
.ccard__v { margin-top: 4px; font-size: min(14.5px, 3.25vw); font-weight: 400; color: #9b9b9f; letter-spacing: .01em; line-height: 1.25; word-break: break-all; }

/* ------------------------------------------------------------ 页脚（参考图 7 下半） */
.footer { background: var(--dark); color: #fff; padding: 53px 31px calc(95px + var(--safe-b)); }
.footer__link { display: flex; align-items: center; justify-content: space-between; height: 72px; font-size: 16.5px; letter-spacing: .02em; border-bottom: 1px solid rgba(255, 255, 255, .14); transition: padding .3s var(--ease), color .3s; }
.footer__link:active { padding-left: 6px; color: var(--accent); }
.footer__link .ico { width: 19px; height: 19px; color: #8f8f8f; }
.footer__copy { margin-top: 30px; font-size: 11.5px; font-weight: 400; color: #9c9c9c; line-height: 1.95; letter-spacing: .01em; }
.footer__copy b { font-weight: 400; color: #b5b5b5; }

/* ------------------------------------------------------------ 导航页（图8） */
.menu { background: #f3f2f7; display: flow-root; min-height: calc(100vh - var(--hd-h)); padding-bottom: calc(30px + var(--safe-b)); }
.search { margin: 22px 24px; height: 48px; border-radius: 24px; background: rgba(0, 0, 0, .05); display: flex; align-items: center; gap: 10px; padding: 0 22px; color: #a2a2a6; transition: background .25s, box-shadow .25s; }
.search:focus-within { background: #fff; box-shadow: 0 0 0 1.5px var(--ink) inset, 0 8px 24px rgba(0, 0, 0, .06); }
.search .ico { width: 21px; height: 21px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: #a8a8ac; }
.mnav__item { position: relative; display: flex; align-items: center; justify-content: space-between; height: 73px; padding: 0 31px; font-size: 17.5px; letter-spacing: .02em; opacity: 0; transform: translateX(18px); animation: menuIn .55s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 45ms + 80ms); transition: background .25s; }
.mnav__item:active { background: #f6f6f8; }
.mnav__item::after { content: ""; position: absolute; left: 31px; right: 31px; bottom: 0; height: 2px; background: #dedde2; }
.mnav__item .ico { width: 20px; height: 20px; color: #b4b4b8; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ 列表页（图9）
   整页不滚动：顶部搜索固定，左侧子分类固定，只有右侧商品列表独立滚动 */
.listpage {
  background: #fff;
  height: calc(100vh - var(--hd-h));
  height: calc(100dvh - var(--hd-h));
  display: flex; flex-direction: column;
  overflow: hidden;
}
.listpage > .search { flex: none; margin: 22px 24px 0; }
.list { flex: 1 1 auto; min-height: 0; display: flex; background: #fff; overflow: hidden; margin-top: 31px; }
.side { flex: 0 0 104px; background: #f4f4f4; position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.side::-webkit-scrollbar { display: none; }
.side__item { position: relative; width: 100%; height: 58px; display: flex; align-items: center; justify-content: center; font-size: 14.5px; color: #b4b4b8; letter-spacing: .03em; transition: color .3s var(--ease), background .3s var(--ease); }
.side__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #111; transform: scaleY(0); transition: transform .35s var(--ease); }
.side__item.on { background: #fff; color: #111; font-weight: 600; }
.side__item.on::before { transform: scaleY(1); }
.lmain { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.lmain::-webkit-scrollbar { display: none; }
.toolbar { position: sticky; top: 0; z-index: 3; background: #fff; display: flex; align-items: center; gap: 18px; height: 29px; padding: 0 24px 0 20px; font-size: 12px; }
.grid-wrap { padding: 0 24px calc(28px + var(--safe-b)) 20px; }
.toolbar__btn { display: inline-flex; align-items: center; gap: 4px; color: #b4b4b8; transition: color .25s; }
.toolbar__btn.on { color: #111; font-weight: 600; }
.toolbar__btn .ico { width: 10px; height: 10px; transition: transform .35s var(--ease); }
.toolbar__btn.asc .ico { transform: rotate(180deg); }
.toolbar__all { display: inline-flex; align-items: center; gap: 3px; color: #111; font-size: 12px; }
.toolbar__all .ico { width: 11px; height: 11px; color: #b4b4b8; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 11px; }
.prod { display: block; opacity: 0; transform: translateY(18px); animation: fadeUp .6s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
.prod--noanim { opacity: 1; transform: none; animation: none; }
.prod__img { position: relative; aspect-ratio: 3 / 4; background: #f7f7f9; border-radius: 4px; overflow: hidden; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.prod:active .prod__img img { transform: scale(1.05); }
.prod__badge { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 10.5px; letter-spacing: .06em; }
.prod__n { margin-top: 11px; font-size: 14.5px; font-weight: 500; letter-spacing: .02em; color: #111; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod__s { margin-top: 3px; font-size: 11.5px; line-height: 1.4; font-weight: 400; color: #a9a9ad; letter-spacing: .02em; }
.prod__p { margin-top: 4px; font-size: 13px; color: #c0392b; font-weight: 600; }
.empty { padding: 70px 0; text-align: center; color: #a9a9ad; font-size: 13.5px; }

/* ------------------------------------------------------------ 详情页（图10） */
.detail { background: #fff; padding: 26px 26px calc(44px + var(--safe-b)); }
.dcover { position: relative; aspect-ratio: 3 / 4; background: #f2f2f3; border-radius: 4px; overflow: hidden; }
.dcover img { width: 100%; height: 100%; object-fit: cover; animation: fadeUp .8s var(--ease-out) both; }
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 30px 0 22px; border-bottom: 1px solid var(--line); animation: fadeUp .7s var(--ease-out) .1s both; }
.dhead__n { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.dhead__s { margin-top: 8px; font-size: 14px; font-weight: 400; color: #a3a3a7; letter-spacing: .03em; }
.dhead__p { margin-top: 6px; font-size: 15px; color: #c0392b; font-weight: 700; }
.share { flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; padding: 0; background: none; transition: transform .25s var(--ease); }
.share:active { transform: scale(.92); }
.share img { width: 100%; height: 100%; display: block; }
.dblock { margin-top: 12px; }
.dblock--img { position: relative; border-radius: 4px; overflow: hidden; background: #f2f2f3; }
.dblock--img img { width: 100%; height: auto; }
.dblock__ov { position: absolute; left: 0; right: 0; top: 56%; text-align: center; padding: 0 16px; }
.dblock__ovt { font-size: 22px; font-weight: 700; letter-spacing: .04em; color: #111; text-shadow: 0 2px 16px rgba(255, 255, 255, .9); }
.pill { display: inline-block; margin-top: 12px; padding: 5px 15px; border-radius: 14px; background: #1fa34a; color: #fff; font-size: 12px; letter-spacing: .04em; box-shadow: 0 6px 16px rgba(31, 163, 74, .3); }
.dfeat { margin-top: 12px; background: #e8e8ea; border-radius: 4px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 13px 4px 11px; text-align: center; }
.dfeat__i { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 9.5px; color: #8d8d92; letter-spacing: .01em; line-height: 1.3; }
.dfeat__i .ico { width: 25px; height: 25px; }
.dblock--txt { padding: 32px 20px 28px; max-width: 340px; margin: 0 auto; }
.dblock--txt h3 { font-size: 18px; font-weight: 700; line-height: 1.55; letter-spacing: .03em; }
.dblock--txt p { margin-top: 12px; font-size: 11.5px; font-weight: 400; line-height: 1.95; color: #9a9a9e; letter-spacing: .02em; }

/* ------------------------------------------------------------ 文章页 */
.article { padding: 26px 22px calc(60px + var(--safe-b)); }
.article h1 { font-size: 23px; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; }
.article h3 { margin-top: 24px; font-size: 15.5px; font-weight: 700; letter-spacing: .02em; }
.article p { margin-top: 8px; font-size: 13.5px; line-height: 1.95; color: #4a4a4f; text-align: justify; }
.article img { margin-top: 14px; border-radius: 6px; }

/* ------------------------------------------------------------ 反馈 */
.ripple { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: rgba(255, 255, 255, .35); pointer-events: none; animation: ripple .65s ease-out forwards; }
.ripple--dark { background: rgba(0, 0, 0, .12); }
.toast { position: fixed; left: 50%; bottom: calc(12vh + var(--safe-b)); transform: translate(-50%, 24px); background: rgba(22, 22, 24, .94); color: #fff; padding: 11px 20px; border-radius: 22px; font-size: 13.5px; letter-spacing: .04em; opacity: 0; pointer-events: none; z-index: 200; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: opacity .35s var(--ease), transform .45s var(--ease-out); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.err { padding: 80px 24px; text-align: center; color: #888; }
.err b { display: block; font-size: 17px; color: #222; margin-bottom: 10px; }

@media (min-width: 560px) { .app { margin: 0 auto; } }

/* 全部（下拉筛选） */
.toolbar__allwrap { margin-left: auto; position: relative; }
.allmenu { position: absolute; right: 0; top: 100%; margin-top: 8px; min-width: 158px; max-height: 320px; overflow-y: auto;
  background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .14); padding: 6px; z-index: 8; display: none; }
.allmenu.show { display: block; animation: fadeUp .18s var(--ease-out) both; }
.allmenu__i { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: #333; white-space: nowrap; }
.allmenu__i.on { background: #f3f2f7; color: #111; font-weight: 600; }
.allmenu__i:active { background: #f6f6f8; }

/* 搜索结果页：与商品列表页同一套卡片与左右边距 */
.searchpage { background: #fff; min-height: calc(100vh - var(--hd-h)); padding-bottom: calc(28px + var(--safe-b)); }
.searchpage .grid-wrap { padding: 0 24px 0 20px; }
.searchcount { padding: 2px 20px 12px; font-size: 12.5px; color: #9a9a9e; letter-spacing: .02em; }

/* 窄屏（iPhone 12/13/14 等 ≤430px）：联系我们卡片收紧，保证地址与电话单行 */
@media (max-width: 430px) {
  .ccard { gap: 20px; padding: 26px 20px 26px 22px; }
  .ccard .ico { width: 30px; height: 30px; }
  .car { padding-left: 22px; }
  .sec__h { font-size: 5.9vw; line-height: 1.25; }
  .sec__p { font-size: 3.3vw; line-height: 1.75; }
}
