/* ==========================================================================
   水韵三都 · 文创商城
   视觉延续站点：马鞍青（靛蓝）/ 赛马红（朱砂）/ 丝线白（宣纸）
   叠加马尾绣回字纹与水波纹、银饰微浮雕光影
   ========================================================================== */

.shop-body { padding-bottom: 104px; }

:root {
  --saddle: #16324f;        /* 马鞍青：深靛，用于色块与标题 */
  --saddle-soft: #24507a;
  --race: #c0392b;          /* 赛马红 */
  --yarn: #f4f1e8;          /* 丝线白 */
  --gold: #b08a3e;          /* 银饰高光转成的旧金 */
  --leaf: #2f7a56;          /* 助农绿 */
  --card: #ffffff;
  --shadow-m: 0 8px 26px rgba(20, 30, 48, 0.08);
  --shadow-l: 0 18px 48px rgba(20, 30, 48, 0.14);
}

/* 回字纹底纹：低透明度的方回套叠 */
.bg-hui {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%231e3f7d' stroke-width='1' stroke-opacity='0.16'%3E%3Crect x='6' y='6' width='24' height='24'/%3E%3Crect x='12' y='12' width='12' height='12'/%3E%3C/g%3E%3C/svg%3E");
}

/* 水波纹：用于深色色块上 */
.bg-wave {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24' viewBox='0 0 80 24'%3E%3Cpath d='M0 18c10 0 10-8 20-8s10 8 20 8 10-8 20-8 10 8 20 8' fill='none' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* ---------- 顶部：吉祥物 + 搜索 ---------- */
.shop-top {
  position: relative;
  padding: 30px 0 26px;
  background:
    radial-gradient(ellipse 70% 120% at 8% 0%, rgba(192, 57, 43, 0.16), transparent 60%),
    linear-gradient(180deg, #f7f5ef 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.shop-top-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.mascot-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.mascot-chip img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px rgba(30, 63, 125, 0.16);
  transition: transform 0.5s var(--ease);
}

.mascot-chip:hover img { transform: rotate(-6deg) scale(1.05); }

.mascot-chip b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--saddle);
}

.mascot-chip span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.search-wrap { flex: 1; min-width: 0; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 8px 0 18px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(20, 30, 48, 0.05);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.search-bar:focus-within {
  border-color: var(--saddle-soft);
  box-shadow: 0 10px 26px rgba(30, 63, 125, 0.14);
}

.search-bar .ico {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

.search-bar input::placeholder { color: #a9abb2; }

.search-bar .go {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--saddle);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.search-bar .go:hover { background: var(--race); }

.search-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.search-keys button {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.search-keys button:hover {
  color: var(--saddle);
  border-color: var(--saddle-soft);
  background: #fff;
}

/* ---------- 金刚区 ---------- */
.kk-nav {
  padding: 26px 0 6px;
}

.kk-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.kk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 6px 10px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.kk-item:hover { background: var(--bg-warm); transform: translateY(-2px); }

.kk-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  letter-spacing: 0;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.16), 0 8px 18px rgba(20, 30, 48, 0.12);
}

.kk-item:nth-child(1) i { background: linear-gradient(140deg, #24507a, #16324f); }
.kk-item:nth-child(2) i { background: linear-gradient(140deg, #c4564a, #96281d); }
.kk-item:nth-child(3) i { background: linear-gradient(140deg, #c39b52, #8d6a26); }
.kk-item:nth-child(4) i { background: linear-gradient(140deg, #2f7a56, #1e5539); }
.kk-item:nth-child(5) i { background: linear-gradient(140deg, #4a4f6b, #2a2d40); }

.kk-item span {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
}

.kk-item { min-width: 0; }

/* ---------- 轮播 ---------- */
.mall-sec { padding: 22px 0 0; }

.mall-carousel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  background: var(--bg-warm);
}

.mall-viewport { position: relative; aspect-ratio: 2048 / 1084; }

.mall-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
}

.mall-slide.on { opacity: 1; pointer-events: auto; }

.mall-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-viewport { cursor: pointer; }

.mall-viewport img { transition: transform 0.9s var(--ease); }
.mall-viewport:hover img { transform: scale(1.012); }

.mall-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(10, 20, 40, 0.28);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease);
}

.mall-arrow:hover { background: rgba(10, 20, 40, 0.55); }
.mall-arrow.prev { left: 14px; }
.mall-arrow.next { right: 14px; }

.mall-dots {
  position: absolute;
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 7px;
}

.mall-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.mall-dots button.on { width: 24px; background: #fff; }

/* ---------- 播报条 ---------- */
.ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.06), rgba(30, 63, 125, 0.05));
  overflow: hidden;
}

.ticker .who {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--race);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ticker .who img { width: 22px; height: 22px; border-radius: 50%; }

.ticker-view {
  position: relative;
  flex: 1;
  height: 22px;
  overflow: hidden;
}

.ticker-view span {
  position: absolute;
  inset: 0;
  display: block;
  padding-top: 2px;
  font-size: 12.5px;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-view span.on { opacity: 1; transform: translateY(0); }

/* ---------- 秒杀 ---------- */
.flash {
  position: relative;
  margin-top: 34px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #16324f 0%, #24507a 58%, #1b3f66 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-l);
}

.flash::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24' viewBox='0 0 80 24'%3E%3Cpath d='M0 18c10 0 10-8 20-8s10 8 20 8 10-8 20-8 10 8 20 8' fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x bottom;
  pointer-events: none;
}

.flash-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.flash-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
}

.flash-head .sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
}

.cd {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.cd b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.flash-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.flash-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.flash-card:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

.flash-card img {
  flex: 0 0 auto;
  width: 108px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
}

.flash-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }

.flash-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-price { display: flex; align-items: baseline; gap: 7px; }

.flash-price b { font-size: 19px; color: #ffd7a8; font-variant-numeric: tabular-nums; }
.flash-price b small { font-size: 11px; font-weight: 400; }
.flash-price del { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }

.flash-bar {
  position: relative;
  height: 6px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.flash-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb37a, #ff8a5c);
}

.flash-bar em {
  position: absolute;
  right: 6px;
  top: -17px;
  font-size: 10.5px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 商品区 ---------- */
.catalog { padding: 46px 0 10px; }

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.catalog-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--saddle);
}

.catalog-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.chip:hover { border-color: var(--saddle-soft); color: var(--saddle); }

.chip.on {
  background: var(--saddle);
  border-color: var(--saddle);
  color: #fff;
}

/* 双列瀑布流：窄屏两列，宽屏自动多列 */
.masonry {
  columns: 3;
  column-gap: 16px;
  margin-top: 20px;
}

.m-card {
  break-inside: avoid;
  position: relative;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 30, 48, 0.03);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  cursor: pointer;
}

.m-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-m);
}

.m-thumb { position: relative; overflow: hidden; }

.m-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.m-card:hover .m-thumb img { transform: scale(1.04); }

.m-flag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 50, 79, 0.86);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.m-flag.hot { background: rgba(192, 57, 43, 0.92); }

.m-body { padding: 13px 14px 15px; }

.m-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0 10px;
}

.m-tag {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.m-tag.red { color: #a8261a; background: rgba(192, 57, 43, 0.09); border-color: rgba(192, 57, 43, 0.22); }
.m-tag.green { color: #24634a; background: rgba(47, 122, 86, 0.09); border-color: rgba(47, 122, 86, 0.22); }
.m-tag.gold { color: #8a6a22; background: rgba(176, 138, 62, 0.11); border-color: rgba(176, 138, 62, 0.26); }
.m-tag.blue { color: #1f4576; background: rgba(30, 63, 125, 0.08); border-color: rgba(30, 63, 125, 0.2); }

.m-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.m-price {
  font-size: 19px;
  font-weight: 700;
  color: var(--race);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.m-price small { margin-left: 2px; font-size: 11px; font-weight: 400; color: var(--muted); }
.m-price del { margin-left: 6px; font-size: 11px; font-weight: 400; color: #b0b2b8; }

.m-sales { font-size: 11px; color: var(--muted); white-space: nowrap; }

.m-add {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--saddle);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 30, 48, 0.16);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease);
}

.m-card:hover .m-add { opacity: 1; transform: translateY(0); }
.m-add:hover { background: var(--race); color: #fff; }

/* ---------- 组合套餐 ---------- */
.bundle {
  margin-top: 44px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(30, 63, 125, 0.04), rgba(255, 255, 255, 0)),
    #fff;
}

.bundle-in {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.bundle-imgs { display: flex; align-items: center; gap: 10px; }

.bundle-imgs img {
  width: 92px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.bundle-imgs .plus { color: var(--muted); font-size: 16px; }

.bundle-txt { flex: 1; min-width: 220px; }

.bundle-txt h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--saddle);
  letter-spacing: 0.04em;
}

.bundle-txt p { font-size: 12.5px; color: var(--text-dim); margin-top: 5px; }

.bundle-txt p b { color: var(--race); }

.bundle-btn {
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--race);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(192, 57, 43, 0.26);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bundle-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(192, 57, 43, 0.32); }

/* ---------- 积分兑换 ---------- */
.points { padding: 46px 0 0; }

.points-card {
  display: grid;
  grid-template-columns: 1.05fr 2fr;
  gap: 22px;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fdf7ec, #f7f5ef 55%, #eef2f8);
}

.points-mine {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 22px;
  border-right: 1px dashed var(--line-strong);
}

.points-mine img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.points-mine b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--race);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.points-mine span { font-size: 12px; color: var(--muted); }

.points-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.p-item {
  display: flex;
  gap: 10px;
  padding: 9px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.p-item:hover { border-color: var(--saddle-soft); transform: translateY(-2px); }

.p-item img { width: 58px; height: 52px; border-radius: 8px; object-fit: cover; }

.p-item .t { min-width: 0; }

.p-item h4 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-item .pt {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.p-item .pt small { font-size: 10px; font-weight: 400; color: var(--muted); }

/* ---------- 服务承诺 ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 40px 0 10px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

.trust b {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(30, 63, 125, 0.07);
  color: var(--saddle);
  font-family: var(--font-display);
  font-size: 13px;
}

.trust strong { display: block; color: var(--text); font-size: 12.5px; font-weight: 600; }

/* ---------- 悬浮购物车 ---------- */
.fab-cart {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--saddle);
  color: #fff;
  font-size: 21px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(22, 50, 79, 0.34);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.fab-cart:hover { transform: translateY(-3px); background: var(--saddle-soft); }

.fab-cart.bump { animation: bump 0.5s var(--ease); }

@keyframes bump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.14); }
  65% { transform: scale(0.96); }
}

.fab-badge {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--race);
  color: #fff;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* 吉祥物客服 */
.fab-bot {
  position: fixed;
  left: 22px;
  bottom: 96px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(20, 30, 48, 0.14);
  font-family: inherit;
  font-size: 12.5px;
  color: var(--saddle);
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}

.fab-bot:hover { transform: translateY(-3px); }

.fab-bot img { width: 44px; height: 44px; border-radius: 50%; }

/* ---------- 底部菜单 ---------- */
.appbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: 0 16px 36px rgba(20, 30, 48, 0.16);
}

.appbar button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.appbar button i { font-style: normal; font-size: 14px; }

.appbar button.on, .appbar button:hover { background: var(--saddle); color: #fff; }

.appbar .dot {
  position: absolute;
  right: 6px;
  top: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--race);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.appbar .cart-btn { position: relative; }

/* ---------- 遮罩 / 弹层 / 抽屉 ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 18, 28, 0.48);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.veil.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 210;
  width: min(1000px, 94vw);
  max-height: 88vh;
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 20, 40, 0.34);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.sheet.on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

.sheet-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 30, 48, 0.16);
}

.sheet-scroll { overflow-y: auto; }

/* 详情 */
.detail-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
}

.detail-gallery { background: var(--bg-warm); }

.detail-gallery img.main {
  width: 100%;
  aspect-ratio: 1100 / 620;
  object-fit: cover;
}

.detail-gallery .thumbs { display: flex; gap: 8px; padding: 10px 12px 12px; }

.detail-gallery .thumbs img {
  width: 60px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

.detail-gallery .thumbs img.on { border-color: var(--saddle); opacity: 1; }

.detail-info { padding: 24px 26px 20px; }

.detail-info .kicker {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.detail-info h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  color: var(--saddle);
  letter-spacing: 0.02em;
}

.detail-info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0 10px;
  border-bottom: 1px dashed var(--line-strong);
}

.detail-price b { font-size: 30px; color: var(--race); font-variant-numeric: tabular-nums; }
.detail-price b small { font-size: 13px; font-weight: 400; }
.detail-price del { font-size: 13px; color: #b0b2b8; }
.detail-price .sold { margin-left: auto; font-size: 11.5px; color: var(--muted); }

.assure { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }

.assure span {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(30, 63, 125, 0.06);
  color: var(--saddle);
  font-size: 11.5px;
}

.assure span::before { content: "✓ "; color: var(--leaf); }

.sku-block { padding: 6px 0 4px; }

.sku-block h5 { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }

.sku-list { display: flex; flex-wrap: wrap; gap: 8px; }

.sku {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.28s var(--ease);
}

.sku:hover { border-color: var(--saddle-soft); color: var(--saddle); }

.sku.on {
  border-color: var(--saddle);
  background: rgba(30, 63, 125, 0.06);
  color: var(--saddle);
  font-weight: 600;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.qty-row span { font-size: 12px; color: var(--muted); }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

.qty button:hover { background: var(--bg-warm); }

.qty input {
  width: 42px;
  height: 30px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* 详情内容区 */
.detail-body { padding: 6px 26px 26px; }

.d-block { margin-top: 26px; }

.d-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--saddle);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.d-block h3::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--race);
}

.trace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.trace-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}

.trace-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.trace-card figcaption { padding: 10px 12px; font-size: 12px; color: var(--text-dim); line-height: 1.7; }

.cert {
  padding: 16px 18px;
  border: 1px solid rgba(176, 138, 62, 0.4);
  border-radius: var(--r-md);
  background: repeating-linear-gradient(135deg, #fdfaf1, #fdfaf1 10px, #faf5e6 10px, #faf5e6 20px);
}

.cert h4 {
  font-family: var(--font-display);
  font-size: 14px;
  color: #7a5c1e;
  letter-spacing: 0.08em;
}

.cert p { margin-top: 6px; font-size: 11.5px; color: #6f5f3c; line-height: 1.9; }

.cert .seal {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border: 1px solid rgba(168, 38, 26, 0.5);
  border-radius: 4px;
  color: #a8261a;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}

.rev-list { display: grid; gap: 12px; }

.rev {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.rev .ava {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, #24507a, #16324f);
  color: #fff;
  font-size: 13px;
}

.rev .r-main { min-width: 0; }

.rev .r-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.rev .r-top b { font-size: 12.5px; font-weight: 600; }

.rev .stars { color: #d9a441; font-size: 11px; letter-spacing: 1px; }

.rev .r-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }

.rev .r-tags span {
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(47, 122, 86, 0.08);
  color: #24634a;
  font-size: 10.5px;
}

.rev p { font-size: 12px; color: var(--text-dim); line-height: 1.8; }

.rev .r-imgs { display: flex; gap: 6px; margin-top: 8px; }

.rev .r-imgs img { width: 68px; height: 68px; border-radius: 8px; object-fit: cover; }

/* 交叉推荐 */
.cross {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(192, 57, 43, 0.06), rgba(30, 63, 125, 0.05));
  border: 1px solid var(--line);
}

.cross img { width: 76px; height: 62px; border-radius: 9px; object-fit: cover; }

.cross .c-txt { flex: 1; min-width: 0; }

.cross .c-txt p { font-size: 12px; color: var(--text-dim); line-height: 1.7; }

.cross .c-txt b { font-size: 13px; color: var(--text); }

.cross button {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 1px solid var(--saddle);
  border-radius: 999px;
  background: #fff;
  color: var(--saddle);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.cross button:hover { background: var(--saddle); color: #fff; }

/* 详情底部操作栏 */
.detail-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.detail-actions .svc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
}

.detail-actions .svc i { font-style: normal; font-size: 17px; }

.detail-actions .add, .detail-actions .buy {
  flex: 1;
  height: 46px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.detail-actions .add { background: var(--saddle); color: #fff; }
.detail-actions .buy { background: var(--race); color: #fff; box-shadow: 0 8px 20px rgba(192, 57, 43, 0.28); }
.detail-actions .add:hover, .detail-actions .buy:hover { transform: translateY(-2px); }

/* ---------- 购物车抽屉 ---------- */
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 220;
  display: flex;
  flex-direction: column;
  width: min(400px, 92vw);
  background: #fff;
  box-shadow: -20px 0 60px rgba(10, 20, 40, 0.24);
  transform: translateX(102%);
  transition: transform 0.4s var(--ease);
}

.drawer.on { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--saddle);
  letter-spacing: 0.05em;
}

.drawer-head span { font-size: 12px; color: var(--muted); }

.drawer-head .x {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--text);
  cursor: pointer;
}

.ship-tip {
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.08), rgba(192, 57, 43, 0.02));
  color: #a8261a;
  font-size: 12px;
}

.ship-tip b { font-variant-numeric: tabular-nums; }

.cart-list { flex: 1; overflow-y: auto; padding: 14px 20px; }

.cart-line {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.cart-line img { width: 74px; height: 60px; border-radius: 9px; object-fit: cover; }

.cart-line .c-info { flex: 1; min-width: 0; }

.cart-line h4 {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-line .c-sku { margin-top: 2px; font-size: 11px; color: var(--muted); }

.cart-line .c-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cart-line .c-price { font-size: 14px; font-weight: 700; color: var(--race); font-variant-numeric: tabular-nums; }

.cart-line .qty button { width: 26px; height: 26px; font-size: 13px; }
.cart-line .qty input { width: 34px; height: 26px; font-size: 12px; }

.cart-line .del {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.cart-line .del:hover { color: var(--race); }

.cart-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.cart-empty img {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  opacity: 0.9;
}

.drawer-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-ivory);
}

.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.sum-row.total { font-size: 13px; color: var(--text); }

.sum-row.total b { font-size: 22px; color: var(--race); font-variant-numeric: tabular-nums; }

.points-note {
  margin: 8px 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(176, 138, 62, 0.1);
  color: #7a5c1e;
  font-size: 11.5px;
  line-height: 1.7;
}

.pay-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--race);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(192, 57, 43, 0.28);
}

/* ---------- 我的 ---------- */
.my-card { padding: 24px 26px 26px; }

.my-head { display: flex; align-items: center; gap: 14px; }

.my-head img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); }

.my-head b { font-family: var(--font-display); font-size: 18px; color: var(--saddle); }
.my-head span { display: block; font-size: 12px; color: var(--muted); }

.my-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.my-stats div {
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--bg-ivory);
  border: 1px solid var(--line);
  text-align: center;
}

.my-stats b { display: block; font-size: 19px; color: var(--saddle); font-variant-numeric: tabular-nums; }
.my-stats span { font-size: 11px; color: var(--muted); }

.my-list { display: grid; gap: 8px; }

.my-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--text-dim);
}

.my-row b { font-weight: 600; color: var(--text); font-size: 12.5px; }

/* ---------- 客服气泡 ---------- */
.bot-pop {
  position: fixed;
  left: 22px;
  bottom: 164px;
  z-index: 190;
  width: min(300px, 84vw);
  padding: 14px 16px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-l);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.bot-pop.on { opacity: 1; transform: translateY(0); pointer-events: auto; }

.bot-pop h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--saddle);
  margin-bottom: 6px;
}

.bot-pop h5 img { width: 20px; height: 20px; border-radius: 50%; }

.bot-pop p { font-size: 12.5px; color: var(--text-dim); line-height: 1.8; }

.bot-pop .quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.bot-pop .quick button {
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--saddle);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.bot-pop .quick button:hover { background: var(--bg-warm); }

/* ---------- 响应式 ---------- */
/* ---------- 专区导购：马小绣 IP / 农特 / 积分 ---------- */
.zone-sec { padding: 6px 0 4px; }

.zone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.zone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #fbf8f0, #f6f7fb);
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.zone-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -46px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 63, 125, 0.1), transparent 68%);
  pointer-events: none;
}

.zone-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 63, 125, 0.28);
  box-shadow: var(--shadow-soft);
}

.zone-card .z-kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.zone-card b {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--indigo);
}

.zone-card > span:not(.z-kicker) {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dim);
}

.zone-card em {
  margin-top: 8px;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cinnabar);
}

.zone-card.farm b { color: #2f6b4f; }
.zone-card.farm::after { background: radial-gradient(circle, rgba(47, 107, 79, 0.12), transparent 68%); }
.zone-card.farm em { color: #2f6b4f; }

.zone-card.points { background: linear-gradient(140deg, #fdf6ee, #f9f1e6); }
.zone-card.points::after { background: radial-gradient(circle, rgba(178, 58, 44, 0.12), transparent 68%); }

@media (max-width: 980px) {
  .zone-row { grid-template-columns: 1fr; gap: 10px; }
  .zone-card { padding: 16px 18px; }
  .zone-card b { font-size: 16.5px; }
}

@media (max-width: 1180px) {
  .masonry { columns: 2; }
  .detail-top { grid-template-columns: 1fr; }
  .points-card { grid-template-columns: 1fr; }
  .points-mine { border-right: 0; border-bottom: 1px dashed var(--line-strong); padding: 0 0 16px; }
}

@media (max-width: 980px) {
  .shop-top-inner { flex-wrap: wrap; }
  .mascot-chip { width: 100%; }
  .mascot-chip img { width: 62px; height: 62px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .flash-grid { grid-template-columns: minmax(0, 1fr); }
  .points-list { grid-template-columns: 1fr; }
  .trace-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .kk-list { gap: 4px; }
  .kk-item i { width: 48px; height: 48px; font-size: 17px; }
  .kk-item span { font-size: 11.5px; }
  .mall-arrow { display: none; }
  .masonry { column-gap: 12px; }
  .m-body { padding: 11px 12px 13px; }
  .m-title { font-size: 12.5px; }
  .m-price { font-size: 17px; }
  .m-add { opacity: 1; transform: none; width: 30px; height: 30px; font-size: 15px; }
  .shop-body { padding-bottom: 96px; }
  .appbar { width: calc(100% - 24px); justify-content: space-between; bottom: 10px; }
  .appbar button { flex: 1; justify-content: center; padding: 9px 4px; font-size: 11.5px; }
  .fab-cart { right: 14px; bottom: 86px; width: 52px; height: 52px; }
  .fab-bot { left: 14px; bottom: 86px; height: 48px; padding: 0 12px 0 4px; font-size: 11.5px; }
  .fab-bot img { width: 40px; height: 40px; }
  .bot-pop { left: 14px; bottom: 142px; }
  .sheet { width: 100vw; max-height: 92vh; border-radius: 18px 18px 0 0; top: auto; bottom: 0; transform: translate(-50%, 40px); }
  .sheet.on { transform: translate(-50%, 0); }
  .detail-info { padding: 18px 18px 14px; }
  .detail-body { padding: 4px 18px 18px; }
  .detail-info h2 { font-size: 18px; }
  .detail-price b { font-size: 26px; }
  .bundle { padding: 20px; }
  .flash { padding: 18px; }
  .cd { margin-left: 0; }
}

@media (max-width: 560px) {
  .catalog-head h2 { font-size: 22px; }
  .points-card { padding: 18px; }
  .trust { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .m-card, .m-thumb img, .fab-cart, .mall-slide, .ticker-view span { transition: none !important; }
  .fab-cart.bump { animation: none; }
}
