/* ==========================================================================
   青岛栖湖数据 · 人参智能体商城（shop.html）
   在门户的黑白灰骨架上，为零售场景引入一套"暖砂 + 电商红"的局部主题：
   结构、圆角、间距沿用 style.css 的令牌，只替换表面色与价格色。
   --------------------------------------------------------------------------
   目录
   01  商城令牌
   02  布局骨架
   03  首屏轮播横幅
   04  服务入口宫格
   05  签到与优惠券
   06  商品筛选与商品卡
   07  场景套组
   08  服务承诺 / 入驻招募
   09  购物车徽标 / 轻提示 / 底部 tab
   10  响应式
   ========================================================================== */

/* ==========================================================================
   01  商城令牌
   ========================================================================== */
:root {
  --shop-bg: #faf8f3;
  --shop-card: #ffffff;
  --shop-img: #f4eee3;
  --sand: #f2ead9;
  --sand-deep: #e7dbc4;
  --sand-line: #e6dcc9;
  --price: #d2382a;
  --price-ink: #b32d21;
  --price-soft: #fdeeeb;
  --shop-shadow: 0 2px 14px -6px rgba(60, 44, 24, 0.14);
  --shop-shadow-hover: 0 16px 32px -18px rgba(60, 44, 24, 0.35);
}

body.shop-page {
  background: var(--shop-bg);
}

.page--shop {
  background: var(--shop-bg);
  padding-bottom: 0;
}

/* 商城页的页头跟随暖底，胶囊导航仍为纯白 */
.shop-page .site-header {
  background: var(--shop-bg);
}

.shop-page .site-header.is-scrolled {
  background: rgba(250, 248, 243, 0.82);
}

/* 页脚跟随暖底，避免出现一条白色硬边 */
.shop-page .site-footer {
  background: transparent;
}

/* ==========================================================================
   02  布局骨架
   ========================================================================== */
.shop-main {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 2.6vw, 40px);
  padding: clamp(14px, 1.6vw, 24px) var(--gutter) 0;
}

.shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.shop-head__title {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.shop-head__desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 26px;
  color: var(--txt-muted);
}

.shop-head__more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--txt-muted);
  transition: color 0.2s ease, gap 0.2s ease;
}

.shop-head__more:hover {
  gap: 10px;
  color: var(--ink);
}

/* 区块小标题：居中破折线，呼应参考站的"猜你喜欢" */
.shop-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-block: clamp(6px, 1vw, 14px);
}

.shop-split::before,
.shop-split::after {
  content: "";
  width: clamp(24px, 6vw, 76px);
  height: 1px;
  background: var(--sand-deep);
}

.shop-split span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ==========================================================================
   03  首屏轮播横幅
   ========================================================================== */
.shop-banner {
  position: relative;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--sand);
}

.shop-banner__track {
  position: relative;
  height: clamp(300px, 27vw, 388px);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(26px, 3.4vw, 48px) clamp(26px, 3.4vw, 52px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.6s;
}

.slide.is-current {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 暖砂底纹：极轻的径向提亮，避免大面积纯色发闷 */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 90% at 12% 8%,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0) 62%
    ),
    radial-gradient(90% 80% at 96% 100%, rgba(214, 189, 148, 0.35) 0%, rgba(214, 189, 148, 0) 60%);
  pointer-events: none;
}

.slide__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 520px;
}

.slide__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(180, 155, 112, 0.28);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--price-ink);
}

.slide__title {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.slide__desc {
  font-size: 15px;
  line-height: 26px;
  color: #6a6154;
}

.slide__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.slide__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.slide__price .cur {
  font-size: 15px;
  font-weight: 600;
  color: var(--price);
}

.slide__price .val {
  font-size: 30px;
  font-weight: 600;
  color: var(--price);
  line-height: 1;
}

.slide__price .note {
  font-size: 13px;
  color: var(--txt-faint);
}

/* 梯形装饰图 */
.slide__art {
  position: relative;
  height: 100%;
  max-height: 300px;
  border-radius: clamp(18px, 2vw, 26px);
  overflow: hidden;
  background: var(--shop-img);
  box-shadow: 0 22px 44px -28px rgba(58, 42, 20, 0.55);
}

.slide__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide--product .slide__art img {
  object-fit: contain;
  padding: 8px;
}

/* 双图拼贴：让方形商品图在宽幅图框里不显空 */
.slide__art--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--sand-line);
}

.slide__art--pair img {
  min-height: 0;
}

/* 轮播控件 */
.shop-banner__dots {
  position: absolute;
  left: clamp(26px, 3.4vw, 52px);
  bottom: clamp(18px, 2.2vw, 26px);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.shop-banner__dots button {
  width: 22px;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(11, 11, 12, 0.18);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.shop-banner__dots button.is-active {
  width: 40px;
  background: var(--ink);
}

.shop-banner__nav {
  position: absolute;
  right: clamp(16px, 2vw, 24px);
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-50%);
}

.shop-banner__nav button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(180, 155, 112, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.shop-banner__nav button:hover {
  background: #fff;
  transform: scale(1.06);
}

.shop-banner__nav svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   04  服务入口宫格
   ========================================================================== */
.shop-ico {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 2vw, 24px) clamp(14px, 2vw, 22px);
  border-radius: clamp(20px, 2.2vw, 28px);
  background: var(--shop-card);
  border: 1px solid var(--sand-line);
  box-shadow: var(--shop-shadow);
}

.shop-ico__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  border-radius: 16px;
  transition: background-color 0.2s ease;
}

.shop-ico__item:hover {
  background: var(--shop-bg);
}

.shop-ico__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--sand);
  transition: transform 0.2s ease;
}

.shop-ico__item:hover .shop-ico__tile {
  transform: translateY(-2px);
}

.shop-ico__tile svg {
  width: 23px;
  height: 23px;
}

.shop-ico__label {
  font-size: 13px;
  line-height: 1.3;
  color: var(--txt);
  text-align: center;
}

/* 秒杀倒计时角标 */
.shop-ico__badge {
  position: absolute;
  top: -7px;
  right: -8px;
  padding: 2px 6px;
  border-radius: 7px;
  background: var(--price);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.shop-ico__tile--hot {
  background: var(--ink);
}

.shop-ico__tile--warm {
  background: #f0dfd0;
}

.shop-ico__tile--olive {
  background: #e6e8d9;
}

.shop-ico__tile--teal {
  background: #dfeaea;
}

/* ==========================================================================
   05  签到与优惠券
   ========================================================================== */
.shop-perks {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}

.signin {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  border-radius: clamp(18px, 2vw, 24px);
  background: var(--ink);
  color: #fff;
}

.signin__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signin__label {
  font-size: 14px;
  font-weight: 600;
}

.signin__streak {
  font-size: 12px;
  color: var(--accent-mint);
}

.signin__tip {
  font-size: 13px;
  line-height: 22px;
  color: var(--dark-muted);
}

.signin__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.signin__btn.is-done {
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent-mint);
}

.coupons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.coupon {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 18px;
  background: var(--price-soft);
  border: 1px solid #f6d9d2;
  overflow: hidden;
}

.coupon__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 18px;
}

.coupon__amt {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--price);
  font-variant-numeric: tabular-nums;
}

.coupon__amt small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}

.coupon__cond {
  font-size: 12px;
  color: #8d5a53;
}

.coupon__btn {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0 16px;
  border-left: 1px dashed #f0c4ba;
  font-size: 13px;
  font-weight: 600;
  color: var(--price);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.coupon__btn:hover {
  background: #fff;
}

.coupon__btn.is-claimed {
  color: var(--txt-faint);
  font-weight: 500;
  pointer-events: none;
}

/* 券面缺口 */
.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  right: 92px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--shop-bg);
}

.coupon::before {
  top: -5px;
}

.coupon::after {
  bottom: -5px;
}

/* ==========================================================================
   06  商品筛选与商品卡
   ========================================================================== */
.shop-store {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 22px);
}

.shop-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand-line);
  overflow-x: auto;
  scrollbar-width: none;
}

.shop-tabs::-webkit-scrollbar {
  display: none;
}

.shop-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding-bottom: 8px;
  font-size: 16px;
  color: var(--txt-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.shop-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.shop-tabs button:hover {
  color: var(--ink);
}

.shop-tabs button.is-active {
  font-weight: 600;
  color: var(--ink);
}

.shop-tabs button.is-active::after {
  transform: scaleX(1);
}

.shop-tabs__hint {
  margin-left: auto;
  font-size: 13px;
  color: var(--txt-faint);
  white-space: nowrap;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

/* 商品卡 */
.prod {
  display: flex;
  flex-direction: column;
  border-radius: clamp(16px, 1.7vw, 22px);
  background: var(--shop-card);
  border: 1px solid var(--sand-line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.prod:hover {
  transform: translateY(-3px);
  border-color: var(--sand-deep);
  box-shadow: var(--shop-shadow-hover);
}

.prod__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--shop-img);
  overflow: hidden;
}

.prod__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.prod:hover .prod__media img {
  transform: scale(1.04);
}

.prod__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--price-ink);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.prod__badge--hot {
  background: var(--price);
  color: #fff;
}

.prod__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  padding: 14px 14px 16px;
}

.prod__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: var(--ink);
}

.prod__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.prod__price .cur {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--price);
}

.prod__price .val {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--price);
}

.prod__price .was {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--txt-faint);
  text-decoration: line-through;
}

.prod__svip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--sand);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  color: #6b5738;
  font-variant-numeric: tabular-nums;
}

.prod__svip b {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8a6f45;
}

.prod__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.prod__sold {
  font-size: 12px;
  color: var(--txt-faint);
  font-variant-numeric: tabular-nums;
}

.prod__add {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.prod__add svg {
  width: 14px;
  height: 14px;
}

.prod__add:hover {
  background: var(--price);
  transform: scale(1.08);
}

/* 空态 */
.prod-grid__empty {
  grid-column: 1 / -1;
  padding: 56px 20px;
  border-radius: clamp(16px, 1.7vw, 22px);
  background: var(--shop-card);
  border: 1px dashed var(--sand-deep);
  font-size: 14px;
  text-align: center;
  color: var(--txt-faint);
}

/* 筛选态：卡片自带 display，需显式让位给 hidden 属性 */
.prod[hidden],
.prod-grid__empty[hidden] {
  display: none;
}

/* ==========================================================================
   07  场景套组
   ========================================================================== */
.shop-bundles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  padding-bottom: clamp(6px, 1vw, 12px);
}

.bundle {
  display: flex;
  flex-direction: column;
  border-radius: clamp(18px, 2vw, 24px);
  background: var(--shop-card);
  border: 1px solid var(--sand-line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bundle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shop-shadow-hover);
}

.bundle__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--sand-line);
}

.bundle__media img {
  width: 100%;
  /* 必须清掉 HTML 的 height 属性，否则 aspect-ratio 不生效 */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--shop-img);
}

.bundle__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  padding: 16px 18px 18px;
}

.bundle__name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
}

.bundle__items {
  font-size: 12px;
  line-height: 20px;
  color: var(--txt-faint);
}

.bundle__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.bundle__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.bundle__price .cur {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--price);
}

.bundle__price .val {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--price);
}

.bundle__save {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--price-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--price-ink);
  white-space: nowrap;
}

.bundle__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: background-color 0.2s ease;
}

.bundle__add:hover {
  background: var(--price);
}

/* ==========================================================================
   08  服务承诺 / 入驻招募
   ========================================================================== */
.shop-promise {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  padding: clamp(18px, 2vw, 26px) clamp(16px, 2vw, 24px);
  border-radius: clamp(18px, 2vw, 24px);
  background: var(--shop-card);
  border: 1px solid var(--sand-line);
}

.promise {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.promise__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--sand);
}

.promise__icon svg {
  width: 17px;
  height: 17px;
}

.promise__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.promise__desc {
  margin-top: 2px;
  font-size: 12px;
  line-height: 20px;
  color: var(--txt-faint);
}

.shop-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--r-panel);
  background: var(--ink);
}

.shop-join__body {
  max-width: 620px;
}

.shop-join__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-mint);
}

.shop-join__title {
  margin-top: 12px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  font-weight: 500;
  color: #fff;
}

.shop-join__desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 26px;
  color: var(--dark-muted);
}

.shop-join__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* ==========================================================================
   09  购物车徽标 / 轻提示 / 底部 tab
   ========================================================================== */
.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  transition: background-color 0.2s ease;
}

.cart-btn:hover {
  background: var(--surface);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
}

.cart-btn__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--price);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  color: #fff;
  transform: scale(0);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-btn__count.is-on {
  transform: scale(1);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: rgba(11, 11, 12, 0.92);
  font-size: 14px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

/* 移动端底部 tab：仅触屏窄屏出现 */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--sand-line);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.tabbar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1 1 0;
  padding: 4px 0;
  border-radius: 12px;
  font-size: 11px;
  color: var(--txt-faint);
}

.tabbar__item svg {
  width: 21px;
  height: 21px;
}

.tabbar__item.is-active {
  color: var(--ink);
  font-weight: 600;
}

.tabbar__count {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--price);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
  color: #fff;
}

/* ==========================================================================
   10  响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .shop-ico {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .shop-perks {
    grid-template-columns: minmax(0, 1fr);
  }

  .signin {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
  }

  .signin__top {
    flex: 1 1 auto;
  }

  .signin__tip {
    flex: 1 1 100%;
    order: 3;
  }

  .signin__btn {
    margin-top: 0;
  }

  .prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-promise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
  }
}

@media (max-width: 860px) {
  .shop-main {
    padding: 12px var(--gutter) 0;
    gap: 22px;
    /* 为固定底部 tab 让出高度 */
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .shop-bundles {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .bundle__body {
    padding: 14px 16px 16px;
  }

  /* 签到卡回到竖排，按钮独占一行 */
  .signin {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }

  .signin__top {
    flex: none;
  }

  .signin__tip {
    flex: none;
    order: 0;
  }

  .signin__btn {
    width: 100%;
    margin-top: 2px;
  }

  .shop-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .shop-head__desc {
    font-size: 14px;
    line-height: 24px;
  }

  /* 轮播改为上图下文 */
  .shop-banner__track {
    height: auto;
    min-height: 0;
  }

  .slide {
    position: relative;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px 16px 22px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .slide.is-current {
    display: grid;
  }

  .slide__body {
    order: 2;
    max-width: 100%;
    gap: 10px;
    padding: 2px 6px 0;
  }

  .slide__art {
    order: 1;
    height: 168px;
    max-height: none;
    border-radius: 18px;
  }

  .slide__title {
    font-size: 24px;
    line-height: 1.32;
  }

  .slide__desc {
    font-size: 14px;
    line-height: 23px;
  }

  .slide__price .val {
    font-size: 26px;
  }

  .shop-banner__dots {
    position: static;
    justify-content: center;
    margin-top: 2px;
    gap: 7px;
  }

  .shop-banner__dots button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(11, 11, 12, 0.2);
  }

  .shop-banner__dots button.is-active {
    width: 20px;
    border-radius: var(--r-pill);
    background: var(--ink);
  }

  .shop-banner {
    padding-bottom: 14px;
  }

  .shop-banner__nav {
    display: none;
  }

  .shop-ico {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 4px;
    padding: 14px 8px;
  }

  .shop-ico__tile {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .shop-ico__label {
    font-size: 12px;
  }

  .coupons {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-tabs {
    gap: 20px;
  }

  .shop-tabs button {
    font-size: 15px;
  }

  .shop-tabs__hint {
    display: none;
  }

  /* 商品双列 */
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .prod {
    border-radius: 16px;
  }

  .prod__body {
    padding: 10px 11px 13px;
    gap: 6px;
  }

  .prod__title {
    font-size: 13px;
    line-height: 20px;
  }

  .prod__price .val {
    font-size: 19px;
  }

  .prod__badge {
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    font-size: 10px;
  }

  .shop-promise {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .shop-join {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .shop-join__actions {
    width: 100%;
  }

  .shop-join__actions .btn {
    flex: 1 1 auto;
    padding: 13px 20px;
    font-size: 15px;
  }

  .tabbar {
    display: flex;
  }

  .toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  /* 移动端隐藏桌面购物车按钮（底部 tab 已有） */
  .cart-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .coupon::before,
  .coupon::after {
    right: 86px;
  }

  .coupon__body {
    padding: 14px 16px;
  }

  .coupon__amt {
    font-size: 23px;
  }

  .prod__svip {
    display: none;
  }
}

/* 触屏无悬停：关掉上浮，避免点击后状态残留 */
@media (hover: none) {
  .prod:hover {
    transform: none;
    box-shadow: none;
  }

  .prod:hover .prod__media img {
    transform: none;
  }
}

/* ==========================================================================
   06b  旗舰专区 · 长白山数智人参
   三档参龄独立成区：用暖金底衬把 2,999 / 4,999 / 14,999 这条高价线与
   下面 89–428 元的口粮线分开，避免同一筛选器里价格跨度太大。
   ========================================================================== */
.shop-fla {
  gap: clamp(16px, 1.8vw, 24px);
  padding: clamp(18px, 2.4vw, 34px);
  border: 1px solid var(--sand-line);
  border-radius: clamp(20px, 2vw, 28px);
  background: linear-gradient(176deg, #fffdf8 0%, #f6eee0 100%);
}

.shop-fla__eyebrow {
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8d6b3c;
}

.fla-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 18px);
}

.prod--fla {
  border-radius: clamp(14px, 1.4vw, 18px);
  border-color: #e8dcc4;
  background: #fffefb;
}

.prod--fla .prod__media {
  background: #f6f1e6;
}

.prod--fla .prod__body {
  gap: 7px;
  padding: 14px 16px 16px;
}

.prod--fla .prod__title {
  font-size: 15px;
  line-height: 23px;
  font-weight: 500;
}

.prod__spec {
  font-size: 12.5px;
  line-height: 19px;
  color: var(--txt-muted);
}

.prod--fla .prod__price {
  margin-top: 1px;
}

.prod--fla .prod__price .cur {
  font-size: 14px;
}

.prod--fla .prod__price .val {
  font-size: clamp(23px, 2.1vw, 30px);
  letter-spacing: -0.01em;
}

.prod--fla .prod__add {
  width: 32px;
  height: 32px;
}

.prod--fla .prod__add svg {
  width: 15px;
  height: 15px;
}

.prod__badge--ink {
  background: rgba(26, 23, 18, 0.88);
  color: #f8f2e3;
}

.fla-note {
  font-size: 12px;
  line-height: 19px;
  color: var(--txt-faint);
}

@media (max-width: 860px) {
  .shop-fla {
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
  }

  /* 手机上三张竖卡要滚三屏：改成一条可横滑的卡片带，一屏看完全部三档 */
  .fla-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    grid-template-columns: none;
    gap: 10px;
    margin: 0 -16px;
    padding: 2px 16px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .fla-grid::-webkit-scrollbar {
    display: none;
  }

  .prod--fla {
    scroll-snap-align: start;
    border-radius: 14px;
  }

  .prod--fla .prod__media {
    flex: none;
    width: 100%;
    border-radius: 14px 14px 0 0;
  }

  .prod--fla .prod__body {
    gap: 5px;
    padding: 10px 12px 12px;
  }

  .prod--fla .prod__title {
    font-size: 13.5px;
    line-height: 20px;
  }

  .prod--fla .prod__price .val {
    font-size: 21px;
  }

  .prod--fla .prod__price .cur {
    font-size: 12px;
  }

  /* 三张卡保持同高：规格行固定两行位，避免「认证证书」多折一行把卡片撑高 */
  .prod__spec {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
    font-size: 11.5px;
    line-height: 17px;
  }

  .prod--fla .prod__foot {
    padding-top: 0;
    margin-top: 2px;
  }

  .prod--fla .prod__sold {
    font-size: 11px;
  }

  .prod--fla .prod__add {
    width: 28px;
    height: 28px;
  }
}
