/* ==========================================================================
   忻意礼 · v1.2.0 体验升级层（叠加在原样式之后，不修改原有文件）
   1) 报价单「成品效果图」：恢复图片比例，重排为图左文右
   2) 报价单结算区：客服电话标签纠正 + 下单闭环提示条
   3) 下单弹窗：场合 / 期望到货 / 发票 三组快捷选择
   4) 礼盒卡内搭清单：超过 4 条折叠
   ========================================================================== */

/* ---------- 1. 成品效果图 ---------- */
#quotation .quotation-box-effect {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}
#quotation .quotation-box-effect .qbe-label {
  order: -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
#quotation .quotation-box-effect .qbe-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
}
#quotation .qbe-figure {
  position: relative;
  flex: 0 0 230px;
  width: 230px;
  height: 288px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  overflow: hidden;
  border-radius: 12px;
  background: #fbf5e8;
  border: 1px solid rgba(184, 144, 58, .16);
}
/* 关键：礼盒实拍多为竖图（如 800×1804），不加 object-fit 会被强行压扁。
   竖图用 cover 裁掉上下杂物、把礼盒放大；横图/方图用 contain 保全，
   由升级层按 naturalWidth/Height 打 yz-fit-* 类区分。 */
#quotation .qbe-figure > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: transparent;
}
#quotation .qbe-figure > img.yz-fit-cover {
  object-fit: cover;
  object-position: center 52%;
}
#quotation .qbe-figure .qbe-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#quotation .qbe-meta {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
#quotation .qbe-row { align-items: baseline; }
#quotation .qbe-v { min-width: 0; word-break: break-word; }

/* 定制项：填满右侧留白，同时把「能改什么」讲清楚 */
#quotation .qbe-cust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
#quotation .qbe-cust span {
  font-size: 11.5px;
  color: #8a7a62;
  border: 1px dashed rgba(184, 144, 58, .38);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, .55);
  letter-spacing: .02em;
}

@media (max-width: 640px) {
  #quotation .quotation-box-effect .qbe-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    justify-content: flex-start;
  }
  #quotation .qbe-figure {
    flex: 0 0 104px;
    width: 104px;
    height: 134px;
    padding: 4px;
  }
  #quotation .qbe-meta { gap: 3px; max-width: none; flex: 1 1 auto; }
  #quotation .qbe-row { font-size: 12px; }
  #quotation .qbe-v-name { font-size: 13.5px !important; }
  #quotation .qbe-v-price { font-size: 16px !important; }
  #quotation .qbe-hint { font-size: 11px; }
  #quotation .qbe-cust { display: none; }
  .yz-quote-cta { margin: 0 16px 14px; padding: 10px 12px; font-size: 12px; }
}

/* 表格首列只放序号，不必占半屏 */
@media (min-width: 641px) {
  #quotation thead th:first-child,
  #quotation #quotation-body td:first-child { width: 52px; }
  #quotation thead th:nth-child(3) { width: 130px; }
}

/* ---------- 2. 报价单结算区 / 下单闭环 ---------- */
/* 渐入动画会给 .glass-card 打上 opacity:0，若观察器没触发，按钮就永久隐形 */
#quotation .quotation-actions > button { opacity: 1 !important; }

/* 这一排原来五个按钮五种长相：主按钮 53px、导出的 49px、保存为图片灰得像禁用、
   清空重选是一行纯文字，右边参差不齐。统一成「一个主按钮 + 四个同规格次级」：
   高度、内边距、圆角、字号对齐，一行扫过去不再跳眼。 */
#quotation .quotation-actions {
  padding: 0 40px 20px !important;
  gap: 12px !important;
  align-items: center !important;
  flex-wrap: nowrap;
}
#quotation .quotation-actions > button:not(.yz-order-btn) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 48px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .74) !important;
  border: 1px solid rgba(184, 144, 58, .3) !important;
  color: #6b5334 !important;
  font-size: 13.5px !important;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: 0 2px 10px -6px rgba(120, 90, 40, .35) !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
#quotation .quotation-actions > button:not(.yz-order-btn):hover {
  background: #fffdf8 !important;
  border-color: rgba(163, 47, 38, .45) !important;
  color: #a32f26 !important;
  transform: translateY(-1px);
}
/* 「清空重选」是破坏性操作，不该跟其它动作一个分量 */
#quotation .quotation-actions > button:last-child {
  background: transparent !important;
  border-color: transparent !important;
  color: #9a8f80 !important;
  box-shadow: none !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 400;
}
#quotation .quotation-actions > button:last-child:hover {
  color: #a32f26 !important;
  background: rgba(163, 47, 38, .05) !important;
  transform: none;
}
#quotation .quotation-actions > button.yz-share-btn {
  background: rgba(255, 255, 255, .74) !important;
  border: 1px solid rgba(184, 144, 58, .3) !important;
  color: #6b5334 !important;
  padding: 0 24px !important;
}
#quotation .quotation-actions > button.yz-share-btn:hover {
  background: #fffdf8 !important;
  border-color: rgba(163, 47, 38, .45) !important;
  color: #a32f26 !important;
}

.yz-quote-cta {
  margin: 0 24px 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(163, 47, 38, .055), rgba(184, 144, 58, .09));
  border: 1px solid rgba(184, 144, 58, .22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12.5px;
  color: #6b5334;
  line-height: 1.7;
}
.yz-quote-cta b { color: #a32f26; font-weight: 600; }
.yz-quote-cta .yz-quote-cta-sep { color: rgba(168, 151, 122, .6); }
.yz-quote-cta small { color: #a8977a; font-size: 11.5px; }

/* ---------- 3. 下单弹窗扩展 ---------- */
.yz-ord { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.yz-ord-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #7a6248;
  letter-spacing: .02em;
}
.yz-ord-label i { font-style: normal; font-size: 11px; color: #b3a48d; }
.yz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.yz-chips button {
  appearance: none;
  border: 1px solid rgba(184, 144, 58, .28);
  background: rgba(255, 255, 255, .6);
  color: #6b5334;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
  line-height: 1.4;
}
.yz-chips button:hover { border-color: rgba(163, 47, 38, .45); color: #a32f26; }
.yz-chips button.on {
  background: linear-gradient(135deg, #a32f26, #b8903a);
  border-color: transparent;
  color: #fdf7ec;
  box-shadow: 0 4px 12px rgba(163, 47, 38, .18);
}
.yz-order-extra {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px dashed rgba(184, 144, 58, .35);
  background: rgba(255, 255, 255, .5);
  font-size: 12.5px;
  color: #6b5334;
  outline: none;
  box-sizing: border-box;
}
.yz-order-extra::placeholder { color: #bdb0a0; }
.yz-order-extra:focus { border-color: rgba(163, 47, 38, .5); background: #fffdf8; }

/* ---------- 4. 礼盒卡内搭清单折叠 ---------- */
.xy-inner-box.yz-fold .xy-inner-list > li.yz-hide { display: none; }
.yz-fold-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 4px 0 0;
  font-size: 11.5px;
  color: #a32f26;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .02em;
}
.yz-fold-btn:hover { text-decoration: underline; }
.yz-fold-btn::after { content: '▾'; font-size: 10px; transition: transform .2s ease; }
.xy-inner-box.yz-open .yz-fold-btn::after { transform: rotate(180deg); }

/* ---------- 5. 商品卡：一键加购 + 数量步进 ---------- */
/* 未加购时显示原按钮（一次点击加一件）；加过之后按钮原地让位给 −/＋，
   顾客想买 3 件就在卡片上调到 3，不用开弹窗。 */
.yz-buy {
  display: none;
  align-items: stretch;
  vertical-align: middle;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #a32f26, #7d2018);
  color: #fdf7ec;
  box-shadow: 0 6px 18px rgba(163, 47, 38, .28);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.yz-buy.on { display: inline-flex; }
.yz-buy > button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 36px;
  padding: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  transition: background .16s ease;
}
.yz-buy > button:hover { background: rgba(255, 255, 255, .18); }
.yz-buy > button:active { background: rgba(0, 0, 0, .22); }
.yz-buy .n {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* 全部好物网格：与 .mini-act 同高，不撑破卡片 */
.glass-card .yz-buy > button,
.hot-card .yz-buy > button { width: 23px; height: 25px; font-size: 14px; }
.glass-card .yz-buy .n,
.hot-card .yz-buy .n { min-width: 16px; font-size: 11.5px; }
/* 「+ 入盒」原来太轻，几乎看不见；提成主色，才知道卡片上就能加 */
.glass-card .card-actions > button.yz-buy-main,
.hot-card > div button.yz-buy-main {
  background: rgba(163, 47, 38, .92);
  border-color: rgba(163, 47, 38, .92);
  color: #fdf7ec;
  font-weight: 600;
}
.glass-card .card-actions > button.yz-buy-main:hover,
.hot-card > div button.yz-buy-main:hover { background: #7d2018; }

/* 手机端：触摸目标不小于 26px */
@media (max-width: 640px) {
  .yz-buy > button { width: 30px; height: 34px; }
  .glass-card .yz-buy > button,
  .hot-card .yz-buy > button { width: 26px; height: 26px; font-size: 15px; }
  .glass-card .yz-buy .n,
  .hot-card .yz-buy .n { min-width: 18px; font-size: 12px; }
}

/* ---------- 6. 报价单主按钮：提交订单 ---------- */
/* 报价单是客户做决定的最后一屏，主操作必须是「下单」，而不是「导出」。 */
#quotation .quotation-actions > button.yz-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 172px;
  background: linear-gradient(135deg, #a83026, #7d1f17) !important;
  border: 1px solid rgba(125, 31, 23, .92) !important;
  color: #fdf7ec !important;
  height: 48px;
  padding: 0 32px !important;
  font-size: 15.5px !important;
  font-weight: 600;
  letter-spacing: .05em;
  box-shadow: 0 12px 26px -8px rgba(163, 47, 38, .55) !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
#quotation .quotation-actions > button.yz-order-btn:hover {
  background: linear-gradient(135deg, #b8372b, #8b2419) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(163, 47, 38, .62) !important;
}
#quotation .quotation-actions > button.yz-order-btn:active { transform: translateY(0); }
#quotation .quotation-actions > button.yz-order-btn svg { flex: 0 0 auto; }

@media (max-width: 640px) {
  /* 原来五个按钮各占一行、纵向堆到屏幕外。改成：主按钮占满一行，
     四个次级动作两列排（清空重选单独一行垫底），一屏内能全看到。
     注意原站这里把容器改成了 flex-direction: column，不写回 row 就是一条竖线。 */
  #quotation .quotation-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 16px 18px !important;
  }
  #quotation .quotation-actions > button.yz-order-btn {
    flex: 1 0 100%;
    width: 100%;
    height: 50px !important;
    padding: 0 20px !important;
    font-size: 16px !important;
  }
  #quotation .quotation-actions > button:not(.yz-order-btn) {
    flex: 1 1 calc(50% - 5px);
    width: auto !important;
    height: 44px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }
  /* 两列网格里如果它完全无框，左边有框右边没框会显得少了一块 */
  #quotation .quotation-actions > button:last-child {
    flex: 1 1 calc(50% - 5px);
    height: 44px !important;
    border: 1px solid rgba(184, 144, 58, .16) !important;
    background: transparent !important;
  }
}

/* ---------- 7. 选盒卡「尺寸 + 价格」行：手机上尺寸被截成 280×180×100… ---------- */
/* 尺寸是选盒的唯一判断依据，截断后第一百位看不全，等于白给。
   小屏把字号与内边距收一收，让「280×180×100mm」整行放得下。 */
.gift-box-card .xy-size-row { gap: 6px; }
.gift-box-card .xy-size-dim { flex: 1 1 auto; min-width: 0; letter-spacing: 0; }
@media (max-width: 460px) {
  .gift-box-card .xy-size-row { padding: 3px 5px; gap: 5px; }
  .gift-box-card .xy-size-dim { font-size: 10px; }
  .gift-box-card .xy-size-price { font-size: 11.5px; }
}
@media (max-width: 380px) {
  .gift-box-card .xy-size-dim { font-size: 9.5px; }
}

/* ==========================================================================
   8. 礼盒卡视觉升级（#special .special-card）
   —— 15 款礼盒在库里全都没有实拍图，卡片只剩「标签 + 一堆清单行」，
      13 张并排像一份价目表。这里给每张卡加一条「礼盒视觉带」：
      等距礼盒插画（盒体颜色随礼盒主色变）+ 朱印 + 件数标，
      并把清单、价格、按钮重排成货架卡片的层次。
   —— 纯装饰层，不改任何交互；全部规则限定在 #special 内，
      不影响商品卡 / 选盒卡的既有样式。
   ========================================================================== */
#special .special-card {
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #faf5ea 100%);
  border: 1px solid rgba(184, 146, 74, .22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 26px -14px rgba(90, 68, 46, .26);
  transition: transform .38s cubic-bezier(.2, .8, .3, 1), box-shadow .38s ease, border-color .38s ease;
}
#special .special-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 1px 0 #fff inset, 0 26px 44px -20px rgba(90, 68, 46, .4) !important;
  border-color: rgba(163, 47, 38, .3) !important;
}

/* --- 视觉带 --- */
#special .yz-art {
  position: relative;
  height: 146px;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0 calc(var(--yz-px, 18px) * -1) .95rem;
  background:
    radial-gradient(118% 82% at 50% 114%, rgba(255, 255, 255, .95), transparent 64%),
    linear-gradient(158deg, var(--yz-k1, #f8ead6), var(--yz-k2, #eed1b0));
}
#special .yz-art::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 146, 74, .5) 18%, rgba(223, 194, 131, .9) 50%, rgba(184, 146, 74, .5) 82%, transparent);
}
#special .yz-art .yz-glow {
  position: absolute; left: 50%; top: 86%; width: 210px; height: 150px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), transparent);
}
#special .yz-art svg.yz-box {
  position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
  width: 192px; height: 142px; overflow: visible;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
#special .special-card:hover .yz-art svg.yz-box { transform: translateX(-50%) translateY(-3px) scale(1.02); }
#special .yz-art .yz-seal {
  position: absolute; right: 11px; top: 11px; width: 37px; height: 37px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif SC", "Songti SC", serif; font-size: 15px; line-height: 1; color: #fff;
  background: #a32f26;
  box-shadow: 0 3px 9px rgba(163, 47, 38, .32), 0 0 0 2px rgba(255, 255, 255, .55) inset;
  transform: rotate(6deg);
}
#special .yz-art .yz-cnt {
  position: absolute; left: 11px; top: 11px;
  font-size: 10.5px; letter-spacing: .06em; line-height: 1.5;
  padding: 3px 8px; border-radius: 999px; color: #6b5230;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(184, 146, 74, .32);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* --- 卡头：原「定位词标签 + 件数」与标题重复，件数已移到视觉带上，整行收起 --- */
#special .special-card .xy-card-head { display: none !important; }

/* --- 标题：书法体 + 尾随金线 --- */
#special .special-card .xy-inner-card h4,
#special .special-card h4 {
  display: flex; align-items: center; gap: 9px;
  font-size: 17.5px !important; font-weight: 600; line-height: 1.25;
  letter-spacing: .02em; margin-bottom: 0 !important;
  min-height: 0 !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#special .special-card h4::after {
  content: ''; flex: 1 1 auto; min-width: 10px; height: 1px;
  background: linear-gradient(90deg, rgba(184, 146, 74, .45), transparent);
}

/* --- 清单 --- */
#special .special-card .xy-inner-box {
  margin-top: 10px; padding: 0;
  flex: 0 0 auto;
  background: none; border: 0; box-shadow: none;
}
#special .special-card .xy-inner-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: .12em; color: #a89273;
  margin-bottom: 8px; text-transform: none;
}
#special .special-card .xy-inner-label::before {
  content: ''; width: 12px; height: 1px; background: rgba(184, 146, 74, .6);
}
#special .special-card .xy-inner-icon { display: none !important; }
#special .special-card .xy-inner-list { display: block; margin: 0; padding: 0; }
/* 项目符号用绝对定位：原写成 flex item 后，4px 小方块按 baseline 对齐会浮到上一行，
   截图里每行文字都像被盖了一个金点。 */
#special .special-card .xy-inner-item {
  position: relative; display: block;
  padding: 0 30px 0 11px;
  font-size: 12.5px !important; line-height: 1.5; color: #5c4a37;
  border: 0; background: none;
}
#special .special-card .xy-inner-item + .xy-inner-item { margin-top: 4px; }
#special .special-card .xy-inner-item::before {
  content: ''; position: absolute; left: 1px; top: .58em;
  width: 4px; height: 4px;
  transform: rotate(45deg);
  background: #dfc283; border: .5px solid rgba(184, 146, 74, .7);
}
#special .special-card .xy-inner-count {
  position: absolute; right: 0; top: 0;
  font-size: 10.5px; color: #bda67f; font-variant-numeric: tabular-nums;
  background: none; padding: 0;
}
#special .special-card .xy-inner-pack {
  position: relative; display: block;
  margin-top: 7px; padding: 4px 8px;
  font-size: 11px !important; line-height: 1.55; color: #8a7256;
  background: rgba(184, 146, 74, .08); border-radius: 6px;
}
#special .special-card .xy-inner-pack::before { display: none; }
#special .special-card .xy-inner-pack .xy-inner-count {
  position: static; display: inline; font-size: 10.5px; color: #a89273;
}

/* --- 一句话卖点：空白留给它下方，避免清单和卖点被拉开一道大口子 --- */
#special .special-card .xy-inner-note {
  margin-top: 9px; margin-bottom: auto; padding-left: 8px;
  font-size: 11px !important; line-height: 1.6; color: #9a856a;
  border-left: 2px solid rgba(184, 146, 74, .28);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- 价格 + 按钮 --- */
#special .special-card .xy-card-foot {
  margin-top: auto; padding-top: 11px;
  border-top: 1px dashed rgba(184, 146, 74, .26);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
#special .special-card .xy-card-foot .font-elegant {
  font-size: 26px !important; line-height: 1; letter-spacing: -.01em;
  color: #a32f26;
}
#special .special-card .xy-card-foot p { font-size: 10.5px !important; color: #b0865f !important; margin-top: 4px !important; }
#special .special-card .add-btn {
  padding: 8px 14px !important; border-radius: 999px !important;
  font-size: 12.5px !important; letter-spacing: .04em; white-space: nowrap;
  background: linear-gradient(180deg, #b23a2f, #8f261e) !important;
  box-shadow: 0 5px 13px -6px rgba(143, 38, 30, .75), 0 1px 0 rgba(255, 255, 255, .2) inset !important;
  transform: none;
}
#special .special-card .add-btn:hover {
  filter: brightness(1.08); transform: translateY(-1px) !important;
  background: linear-gradient(180deg, #b23a2f, #8f261e) !important;
}

/* --- 步进器（已加购后原地换上来）：收窄到与按钮同重，不跟价格抢位置 --- */
/* 已加购状态：白底金边，让「加入礼盒」的红色仍是卡上唯一强 CTA */
#special .special-card .yz-buy {
  vertical-align: middle;
  background: #fffdf8;
  border: 1px solid rgba(163, 47, 38, .26);
  box-shadow: 0 2px 9px -4px rgba(90, 68, 46, .3);
  color: #a32f26;
}
#special .special-card .yz-buy > button:hover { background: rgba(163, 47, 38, .08); }
#special .special-card .yz-buy > button:active { background: rgba(163, 47, 38, .14); }
#special .special-card .yz-buy > button { width: 26px; height: 33px; font-size: 15px; }
#special .special-card .yz-buy .n { min-width: 19px; font-size: 12.5px; }

/* --- 小屏 --- */
@media (max-width: 640px) {
  #special .yz-art { height: 118px; margin-bottom: .8rem; }
  #special .yz-art svg.yz-box { width: 158px; height: 112px; bottom: 6px; }
  #special .yz-art .yz-seal { width: 33px; height: 33px; font-size: 13.5px; }
  #special .special-card h4 { font-size: 16.5px !important; }
  #special .special-card .xy-card-foot .font-elegant { font-size: 23px !important; }
  #special .special-card:hover { transform: none !important; }
}

/* ---------- 8b. 末行补位卡：企业定制 / 到店看样 / 人工代配 ----------
   礼盒卡按列数整除不了时，最后一行会空出 1–3 格，右下角秃一块。
   用这三张服务卡补满：虚线边框、居中留白，视觉上是「留白」而不是「空位」。 */
#special-grid > .yz-fill {
  display: flex; align-items: center; justify-content: center;
  min-height: 100%;
  padding: 26px 22px;
  border: 1px solid rgba(184, 146, 74, .2);
  border-radius: 18px;
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(255, 255, 255, .9), transparent 62%),
    linear-gradient(180deg, #fffdf8 0%, #faf5ea 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 26px -14px rgba(90, 68, 46, .18);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
#special-grid > .yz-fill:hover {
  border-color: rgba(163, 47, 38, .28);
  box-shadow: 0 1px 0 #fff inset, 0 20px 38px -20px rgba(90, 68, 46, .3);
  transform: translateY(-4px);
}
#special-grid > .yz-fill .yz-fill-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
#special-grid > .yz-fill svg {
  width: 24px; height: 24px; box-sizing: content-box; padding: 15px;
  border-radius: 50%;
  color: rgba(163, 47, 38, .8);
  background: rgba(163, 47, 38, .05);
  border: 1px solid rgba(163, 47, 38, .14);
  box-shadow: 0 4px 14px -8px rgba(163, 47, 38, .5);
  margin-bottom: 18px;
}
#special-grid > .yz-fill h5 {
  font-family: "Noto Serif SC", serif; font-size: 17px; font-weight: 600;
  color: #4f3c28; letter-spacing: .1em; margin: 0 0 10px;
}
#special-grid > .yz-fill p {
  font-size: 12.5px; line-height: 1.75; color: #9a856a; margin: 0 0 20px; max-width: 14em;
}
#special-grid > .yz-fill button {
  appearance: none; cursor: pointer; font-family: inherit;
  padding: 8px 20px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .08em;
  color: #a32f26; background: rgba(163, 47, 38, .07);
  border: 1px solid rgba(163, 47, 38, .26);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#special-grid > .yz-fill button:hover { background: #a32f26; color: #fdf8ee; border-color: #a32f26; }
@media (max-width: 640px) {
  #special-grid > .yz-fill { min-height: 150px; padding: 20px; }
  #special-grid > .yz-fill svg { margin-bottom: 12px; width: 21px; height: 21px; padding: 12px; }
  #special-grid > .yz-fill p { margin-bottom: 12px; }
}

/* ==========================================================================
   9. 场景导购并入「当季热销礼盒」
   —— 原来页面上有两处「按场合选礼」：
      ① #products 顶部一排按钮（先说说，这份礼要送给谁）—— 与 ② 重复，收掉；
      ② #special 之后独立一整块「四时有序，礼有所归」（约 616px 高）。
      现在把 ② 压成一条内嵌引导带，移到礼盒标题与卡片网格之间，
      礼盒区自己就能「先定场合、再看礼盒」，页面少断一次。
   —— 只重排视觉，卡片本身的 onclick / 图片 / 文案全部沿用原站。
   ========================================================================== */

/* ① 重复的场合按钮排：整块收掉（主题页与门户首页都有这一份，
   下方四张场景卡已经承担了「按场合挑」的职能） */
#yz-occ { display: none !important; }

/* ② 场景带本体：去掉原先独立 section 的上下大留白 */
#special .yz-scenes-inline {
  padding: 0 !important;
  margin: 0 0 34px;
  position: relative;
}
#special .yz-scenes-inline .yz-scenes-inner {
  max-width: none;
  padding: 0;
}

/* 标题压到二级：上面已经有「扬州特产系列」的大标题，这里不再抢主标题 */
#special .yz-scenes-inline .yz-scenes-head {
  max-width: none;
  padding: 0;
  margin: 0 0 20px;
}
#special .yz-scenes-inline .yz-scenes-eyebrow { display: none !important; }
#special .yz-scenes-inline .yz-scenes-title {
  display: block;
  text-align: center;
  white-space: nowrap;
  font-size: 15.5px !important;
  letter-spacing: .2em !important;
  color: #8a6620 !important;
  line-height: 1.5;
  font-weight: 600 !important;
}
/* 两侧短金线：让它读起来是「礼盒区里的一小节」，而不是第二个主标题。
   用行内伪元素而不是 flex —— flex 下 justify-content 在这里没吃到，会贴左。 */
#special .yz-scenes-inline .yz-scenes-title::before,
#special .yz-scenes-inline .yz-scenes-title::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  vertical-align: middle;
  margin: 0 14px;
  transform: none;
  background: linear-gradient(90deg, transparent, rgba(184, 146, 74, .78));
}
#special .yz-scenes-inline .yz-scenes-title::after {
  background: linear-gradient(90deg, rgba(184, 146, 74, .78), transparent);
}
#special .yz-scenes-inline .yz-scenes-sub {
  font-size: 13px !important;
  line-height: 1.7 !important;
  letter-spacing: .03em !important;
  color: #6d5b48 !important;
  max-width: 740px;
  margin: 8px auto 0 !important;
}

/* 四张卡压成横条：图 104、名字 15、说明两行截断 */
#special .yz-scenes-inline .yz-scene-grid { gap: 14px; }
#special .yz-scenes-inline .yz-scene-card { border-radius: 14px; }
#special .yz-scenes-inline .yz-scene-media { height: 126px; }
#special .yz-scenes-inline .yz-scene-media img { object-position: center 44%; }
#special .yz-scenes-inline .yz-scene-body { padding: 11px 13px 12px; }
#special .yz-scenes-inline .yz-scene-body::before { display: none; }
#special .yz-scenes-inline .yz-scene-name {
  font-size: 15px !important;
  letter-spacing: .1em !important;
  margin-bottom: 5px !important;
  color: #3d2817;
}
#special .yz-scenes-inline .yz-scene-desc {
  font-size: 11.5px !important;
  line-height: 1.66 !important;
  color: #856f58 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#special .yz-scenes-inline .yz-scene-desc br { display: none; }
#special .yz-scenes-inline .yz-scene-go {
  font-size: 11px !important;
  letter-spacing: .06em !important;
  margin-top: 8px !important;
  color: #a32f26;
}
/* 印章角标在 104 高的图上缩小，别压住画面 */
#special .yz-scenes-inline .yz-scene-card::after {
  width: 28px; height: 28px; top: 8px; left: 8px;
  background-size: 16px;
}

/* 平板及以下：原站会把卡改成「图左文右」，这里要恢复成图上文下，
   否则两列布局里 118px 的图会把文字挤成一列字 */
@media (max-width: 900px) {
  #special .yz-scenes-inline .yz-scene-card {
    display: block !important;
    grid-template-columns: none !important;
  }
  #special .yz-scenes-inline .yz-scene-media {
    height: 96px !important;
    min-height: 0 !important;
    width: auto !important;
  }
}

@media (max-width: 640px) {
  #special .yz-scenes-inline { margin: 20px 0 22px; }
  #special .yz-scenes-inline .yz-scenes-head { margin-bottom: 13px; }
  #special .yz-scenes-inline .yz-scenes-title { font-size: 16px !important; }
  #special .yz-scenes-inline .yz-scenes-sub { font-size: 11.5px !important; margin-top: 7px !important; line-height: 1.6 !important; }
  #special .yz-scenes-inline .yz-scene-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  #special .yz-scenes-inline .yz-scene-media { height: 92px !important; }
  #special .yz-scenes-inline .yz-scene-body { padding: 9px 10px 10px; }
  #special .yz-scenes-inline .yz-scene-name { font-size: 13.5px !important; letter-spacing: .06em !important; }
  #special .yz-scenes-inline .yz-scene-desc { font-size: 11px !important; line-height: 1.58 !important; }
  #special .yz-scenes-inline .yz-scene-go { font-size: 10.5px !important; margin-top: 6px !important; }
  #special .yz-scenes-inline .yz-scene-card::after { width: 24px; height: 24px; background-size: 14px; top: 6px; left: 6px; }
}

/* ---------- 9b. 场景卡改为纯展示（不跳转） ----------
   这四张卡现在长在礼盒区里，作用只是「说明这个场合该送什么」。
   保留跳转会把顾客带离当前位置，所以摘掉链接与箭头文案，
   鼠标不再变手型、悬停也不再有位移，读起来是一段导语而不是按钮。 */
#special .yz-scenes-inline .yz-scene-go { display: none !important; }
#special .yz-scenes-inline .yz-scene-card {
  cursor: default !important;
  -webkit-tap-highlight-color: transparent;
}
#special .yz-scenes-inline .yz-scene-card:hover,
#special .yz-scenes-inline .yz-scene-card:active {
  transform: none !important;
  filter: none !important;
  box-shadow: 0 8px 24px rgba(72, 52, 31, .05) !important;
}
/* 少了一行箭头，说明文字放宽到三行，信息不减 */
#special .yz-scenes-inline .yz-scene-desc {
  -webkit-line-clamp: 3;
}

/* ---------- 10. 下单成功弹窗（极简） + 订单凭证截图源 ----------
   江江 2026-11-10：弹窗上那一坨说明和「一键复制」都删了，只留保存图片。
   图不能截弹窗本体（只剩一个按钮），改截屏幕外的 #yz-order-shot。
   凭证内部一律用 table / block，不用 flex、grid —— html2canvas 1.4 对 grid 支持不全，
   用了会错位。 */
#order-success-card .success-mark-sm {
  display: inline-flex;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  align-items: center;
  justify-content: center;
  color: #2f7d51;
}
#order-success-card .success-mark-sm svg { width: 46px; height: 46px; }

.yz-save-img {
  background: linear-gradient(135deg, #d8b364, #c09641) !important;
  border: 1px solid rgba(160, 122, 48, .5) !important;
  color: #3a2f25 !important;
  font-size: 15px !important;
  letter-spacing: .06em;
  box-shadow: 0 10px 22px -10px rgba(174, 132, 47, .7) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.yz-save-img:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(174, 132, 47, .8) !important;
}
.yz-save-img:active { transform: translateY(0); }

/* 截图源：挪到屏幕外但保留布局与尺寸，html2canvas 才截得到 */
#yz-order-shot {
  position: fixed;
  left: -100000px;
  top: 0;
  width: 420px;
  z-index: -1;
  pointer-events: none;
}

.yz-os {
  width: 420px;
  box-sizing: border-box;
  padding: 34px 30px 28px;
  background: linear-gradient(180deg, #fffdf7 0%, #f8f2e4 100%);
  color: #3a2f25;
  font-family: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  text-align: center;
}
.yz-os-brand {
  font-size: 25px;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #8c2a22;
  line-height: 1.2;
}
.yz-os-sub {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .18em;
  text-indent: .18em;
  color: #a8977a;
  font-family: ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yz-os-no {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 144, 58, .28);
  font-size: 12px;
  color: #8a7a63;
  text-align: left;
  letter-spacing: .04em;
}
.yz-os-no b {
  margin-left: 8px;
  font-size: 15px;
  color: #8c2a22;
  letter-spacing: .06em;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.yz-os-list {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  table-layout: fixed;
}
.yz-os-list td {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(184, 144, 58, .22);
  font-size: 13.5px;
  line-height: 1.5;
  vertical-align: top;
}
.yz-os-nm { text-align: left; color: #3a2f25; word-break: normal; overflow-wrap: break-word; }
.yz-os-nm i {
  font-style: normal;
  color: #a8977a;
  font-size: 12px;
  font-family: ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yz-os-pt {
  width: 92px;
  text-align: right;
  color: #6b5334;
  white-space: nowrap;
  font-family: ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
/* 合计：金额紧贴右边缘，别做成两列表格——列宽会把「合计」推到中间，中间空一大片 */
.yz-os-sum {
  margin-top: 14px;
  text-align: right;
  white-space: nowrap;
  line-height: 1.4;
}
.yz-os-sum span { font-size: 12.5px; color: #8a7a63; margin-right: 12px; }
.yz-os-sum b {
  font-size: 22px;
  color: #a32f26;
  font-weight: 600;
  letter-spacing: .02em;
  font-family: ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yz-os-meta {
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 144, 58, .28);
  border-collapse: collapse;
  text-align: left;
}
.yz-os-meta td {
  padding: 5px 0;
  font-size: 12.5px;
  line-height: 1.6;
  vertical-align: top;
  font-family: ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yz-os-k { width: 62px; color: #a8977a; }
.yz-os-v { color: #4a3f33; word-break: normal; overflow-wrap: break-word; }
.yz-os-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 144, 58, .28);
  font-size: 11.5px;
  color: #a8977a;
  letter-spacing: .04em;
  font-family: ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yz-os-tel {
  margin-top: 10px;
  font-size: 13px;
  color: #8c2a22;
  letter-spacing: .08em;
  font-family: ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 「稍后处理」压到 13px：它只是关窗，不该跟主按钮抢注意力 */
#order-success-card > button:last-of-type {
  font-size: 13px !important;
  letter-spacing: .04em;
  color: #a8977a !important;
}
#order-success-card > button:last-of-type:hover { color: #6b5334 !important; }

/* ---------- 11. 成品展示整块隐藏（2026-11-11） ----------
   江江：这部分先隐藏，暂时不用。
   用 CSS 盖而不是删 HTML，恢复时删掉下面两条即可。
   第二条是必要的：原本 #quotation 与 #showcase 之间、
   #showcase 与 #enterprise 之间各有一条 canal-divider，
   只藏 section 会让两条金线贴在一起变成「双线」。 */
#showcase { display: none !important; }
#showcase + .canal-divider { display: none !important; }

/* ---------- 12. 礼盒工作台只留「选盒型」（2026-11-11） ----------
   江江：步骤 2「搭好物」、步骤 3「预览报价」先不用了。
   恢复时删掉本节、以及 yz-uplift.js 里的 collapseGiftSteps() 即可。
   注意：步骤 3 里有「提交订单 / 导出 Excel / 发给客服」几个出口，
   藏掉后礼盒方案不再能直接下单，客户走下方商品区加购 → 报价单这条路。 */
.gift-stepper > .gift-step[data-step="2"],
.gift-stepper > .gift-step[data-step="3"],
#gift-step-2,
#gift-step-3,
#gift-step-1 button[onclick="setGiftStep(2)"],
#gift-summary-bar button[onclick="setGiftStep(3)"] {
  display: none !important;
}

/* ---------- 11. 报价单底部「把这套方案发给朋友」 ----------
   不挤进上面那排主操作（那里已是 1 主 + 4 次级），单独一行弱化处理。
   位置刻意放在清单末尾：客户看完总价、正要发给领导确认的那一刻。 */
.yz-quote-share-row {
  display: flex;
  justify-content: center;
  margin-top: -8px;
  padding: 0 20px 10px;
}
.yz-quote-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: 1px solid rgba(184, 144, 58, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #8a6d4a;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.yz-quote-share:hover {
  background: #fffdf8;
  border-color: rgba(163, 47, 38, .35);
  color: #a32f26;
}
.yz-quote-share:active { background: #f8f2e4; }
@media (max-width: 640px) {
  .yz-quote-share { font-size: 12.5px; padding: 10px 18px; }
}

/* ---------- 12. 触控尺寸：−/＋ 按钮太小，手机上点不准 ----------
   原站尺寸：桌面 30×36、商品网格 23×25、礼盒卡 26×33、购物车更小。
   目标是 ≥40px 的可点面积。分容器给不同尺寸，避免撑破卡片：
   礼盒卡空间充裕给足，商品网格保持紧凑但明显好点。 */
.yz-buy > button {
  width: 38px !important;
  height: 44px !important;
  font-size: 18px !important;
}
.yz-buy .n {
  min-width: 24px !important;
  font-size: 13.5px !important;
}
.glass-card .yz-buy > button,
.hot-card .yz-buy > button {
  width: 34px !important;
  height: 38px !important;
  font-size: 16px !important;
}
.glass-card .yz-buy .n,
.hot-card .yz-buy .n {
  min-width: 19px !important;
  font-size: 12.5px !important;
}
/* 购物车抽屉：空间最大，给到 44 不留情面 */
#cart-sidebar .cart-qty-btn,
#cart-sidebar .qty-btn,
#cart-sidebar .yz-buy > button {
  min-width: 42px !important;
  min-height: 42px !important;
  width: 42px !important;
  height: 42px !important;
  font-size: 18px !important;
}

/* ===== 2026-11-11 详情弹层：长描述适配 ===== */
/* 1) 商品名过长时会被右上角关闭按钮压字 */
#product-modal #modal-name{padding-right:44px}
/* 长商品名压低字号，尽量一行，给下方内容腾高度 */
@media(min-width:768px){#product-modal #modal-name{font-size:1.62rem!important;line-height:1.34!important}}

/* 2) 风物志卡与新版描述内容重复（都在讲非遗/产地故事），且把卖点挤出首屏 → 收起 */
#product-modal .yz-folklore{display:none!important}

/* 3) 长描述：首屏只露钩子+首段，其余渐隐，点开才展开 */
/* 不用渐隐：渐隐会把最后一行淡成「半截字」，像图没加载好。硬截断 + 展开按钮更干净 */
#modal-description.yz-desc-fold{max-height:222px;overflow:hidden}
.yz-desc-more{
  display:flex;align-items:center;justify-content:flex-start;gap:4px;
  width:100%;margin:2px 0 4px;padding:8px 0;
  border:0;background:none;color:#a32f26;text-align:left;
  font-family:inherit;font-size:12.5px;letter-spacing:.1em;
  cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.yz-desc-more:hover{color:#8f231c}
.yz-desc-more span{display:inline-block;margin-left:4px;transition:transform .2s}

/* 手机端：整页本来就滚动，折叠反而让「展开全文」被底部操作栏压住 → 不折叠 */
@media(max-width:767.98px){
  /* 手机首屏预算：图 300→200、标题价格各降一档，把空间让给简介 */
  #product-modal .grid > div:first-child{min-height:196px!important;padding:12px 16px!important}
  #product-modal #modal-emoji{font-size:3.1rem!important}
  #product-modal #modal-name{font-size:1.32rem!important;line-height:1.36!important;padding-right:40px}
  #product-modal #modal-price{font-size:2.05rem!important}
  #product-modal .p-6{padding:16px!important}
  #product-modal .mb-6.pb-6{margin-bottom:12px!important;padding-bottom:12px!important}
  /* 折到 150px = 钩子句 + 第一段，展开按钮正好露在 sticky 操作栏上方 */
  #modal-description.yz-desc-fold{max-height:150px!important;overflow:hidden!important}
  .yz-desc-more{display:block!important;padding:10px 0!important}
}

/* ===== 2026-11-11 「送给谁」人群筛选 ===== */
.yz-scene-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;margin:2px 0 0}
.yz-scene-label{font-size:11.5px;letter-spacing:.2em;color:#a5895c;margin-right:2px}
.yz-scene-row button{
  padding:7px 15px;border-radius:999px;border:1px solid rgba(176,138,74,.32);
  background:#fffdf8;color:#7a6146;font-family:inherit;font-size:13px;letter-spacing:.04em;
  cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .16s,color .16s,border-color .16s;
}
.yz-scene-row button:hover{border-color:rgba(163,47,38,.4);color:#a32f26}
.yz-scene-row button.on{background:#a32f26;border-color:#a32f26;color:#fdf9f0;font-weight:600}
.yz-scene-tip{font-size:12px;color:#9b8a75;letter-spacing:.06em;margin-left:2px}
.yz-scene-empty{
  grid-column:1/-1;text-align:center;padding:38px 16px;color:#9b8a75;
  font-size:13.5px;line-height:1.9;letter-spacing:.03em;
}
@media(max-width:767.98px){
  /* 手机：按钮文案自带「送长辈」，标签和件数都是冗余（下方已有「共 N 件好物」），省下两行高度 */
  .yz-scene-row{margin:0 0 14px;gap:7px;justify-content:flex-start}
  .yz-scene-label,.yz-scene-tip{display:none}
  .yz-scene-row button{padding:7px 12px;font-size:12.5px}
}

/* ===== 2026-11-11 预算差额提示 ===== */
.yz-budget-hint{
  margin:0 24px 4px;padding:14px 16px;border-radius:12px;
  background:#fdf6e9;border:1px dashed rgba(176,138,74,.42);
}
.yz-bh-line{font-size:13px;color:#8a6d4a;letter-spacing:.02em;line-height:1.6}
.yz-bh-line b{color:#a32f26;font-size:17px;font-weight:700;margin:0 3px}
.yz-bh-picks{display:flex;gap:8px;margin-top:10px}
.yz-bh-picks button{
  flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:4px;
  padding:8px;border-radius:10px;border:1px solid rgba(176,138,74,.24);
  background:#fff;cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent;
  transition:border-color .16s,transform .16s;
}
.yz-bh-picks button:hover{border-color:rgba(163,47,38,.45);transform:translateY(-1px)}
.yz-bh-picks img{width:100%;height:56px;object-fit:contain;border-radius:6px;background:#faf6ee}
.yz-bh-picks span{
  font-size:11.5px;color:#5b4a36;line-height:1.35;text-align:left;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
}
.yz-bh-picks em{font-style:normal;font-size:12px;color:#a32f26;font-weight:600;text-align:left}
@media(max-width:767.98px){
  .yz-budget-hint{margin:0 16px 4px;padding:12px 13px}
  .yz-bh-line{font-size:12.5px}
  .yz-bh-picks img{height:46px}
}

/* ===== 2026-11-11 选盒草稿提示 ===== */
.yz-draft-tip{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:9990;
  display:flex;align-items:center;gap:10px;padding:11px 14px 11px 18px;border-radius:999px;
  background:rgba(52,34,20,.95);color:#f7efdf;font-size:13px;letter-spacing:.02em;
  box-shadow:0 12px 34px rgba(40,24,12,.28);max-width:calc(100vw - 32px);
  animation:yzDtIn .32s ease both;
}
@keyframes yzDtIn{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
.yz-draft-tip b{color:#f0c878;font-weight:700}
.yz-draft-tip button{
  border:0;background:transparent;color:#f7efdf;font-family:inherit;font-size:13px;
  cursor:pointer;padding:5px 8px;border-radius:999px;white-space:nowrap;
  -webkit-tap-highlight-color:transparent;
}
.yz-draft-tip button:hover{background:rgba(255,255,255,.1)}
.yz-draft-tip button.yz-dt-main{background:#a32f26;padding:7px 15px;font-weight:600}
.yz-draft-tip button.yz-dt-main:hover{background:#8f231c}
.yz-draft-tip button.yz-dt-x{opacity:.45;font-size:17px;line-height:1;padding:0 2px}
@media(max-width:767.98px){
  /* 窄屏改两行：文案一行、按钮一行，否则文字会被按钮挤成竖排 */
  .yz-draft-tip{
    bottom:84px;flex-wrap:wrap;justify-content:center;gap:8px;
    width:calc(100vw - 56px);max-width:330px;
    padding:12px 14px 11px;border-radius:16px;
  }
  .yz-draft-tip>span{flex:1 1 100%;text-align:center;white-space:nowrap;font-size:12.5px;line-height:1.5}
  .yz-draft-tip button{font-size:12.5px}
  .yz-draft-tip button.yz-dt-main{padding:7px 16px}
  .yz-dt-x{position:absolute;top:1px;right:6px}
}

/* ===== 2026-11-11 商品卡：方形图 + 一行卖点 + 视图切换 + 花型筛选 =====
   原图 178/184 是 800×800 方图，卡框却是 1.4:1 的横框 + object-fit:contain
   → 左右各留 42px 空带。这里把框改成 1:1，图就满了。 */

/* 原站有 #product-grid .glass-card .product-img-wrap{height:208px!important;aspect-ratio:auto!important}
   压着，所以这里必须同权重 + !important 才能翻过来 */
#product-grid .glass-card .product-img-wrap,
#product-grid .product-img-wrap {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  animation: yzCardShimmer 1.15s ease-in-out 3;
  background-size: 200% 100% !important;
}
@keyframes yzCardShimmer {
  0%   { background-position: 120% 0; }
  100% { background-position: -60% 0; }
}
/* 图没到之前不要露分类线描图（盾牌/叶子），像没上图 */
#product-grid .glass-card .motif-stage { display: none; }
#product-grid .shop-img {
  object-fit: contain;
  transition: transform .38s cubic-bezier(.2,.7,.3,1);
}
#product-grid .glass-card:hover .shop-img { transform: scale(1.035); }

/* 一行卖点：取 features 第一条，单行省略 */
.yz-card-line {
  font-size: 12px;
  line-height: 1.55;
  color: #8b7a5e;
  margin: 5px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yz-card-meta {
  min-height: 16px;
  font-size: 11px;
  line-height: 1.45;
  color: #ab9c84;
  margin: 3px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yz-card-foot { margin-top: 2px; }
.yz-cmp-i { display: none; font-size: 13px; line-height: 1; }

/* 窄屏：动作区不再折成两行把价格挤歪 */
@media (max-width: 640px) {
  .yz-cmp-t { display: none; }
  .yz-cmp-i { display: inline; }
  /* 统一两行：价格一行（含划线原价也不挤），按钮一行且「入盒」占满 —— 触摸目标更大、卡片高度也齐 */
  #product-grid .yz-card-foot { flex-wrap: wrap; gap: 6px; }
  #product-grid .yz-card-price { flex: 0 0 100%; }
  #product-grid .card-actions { width: 100%; flex: 1 1 100%; flex-wrap: nowrap; margin-left: 0; gap: 6px; }
  #product-grid .card-actions .mini-act { height: 32px; font-size: 12px; }
  #product-grid .card-actions .yz-act-cmp { flex: 0 0 40px; padding: 0; }
  #product-grid .card-actions .yz-act-buy { flex: 1 1 auto; padding: 0 10px; }
  .yz-card-line { font-size: 11.5px; -webkit-line-clamp: 2; min-height: 3.1em; }
}

/* ---- 视图切换 ---- */
.yz-view-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -18px 0 14px;
}
.yz-view-label { font-size: 11.5px; color: #ab9c84; letter-spacing: .08em; }
.yz-view-seg {
  display: inline-flex;
  border: 1px solid rgba(168,138,88,.32);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,252,245,.85);
}
.yz-view-seg button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  font-size: 12px;
  color: #8b7a5e;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.yz-view-seg button.on { background: #a32f26; color: #fdf7ec; }

/* ---- 列表视图：一行一件，左边图、中间说清是什么、右边价格和按钮 ---- */
/* ===== 2026-11-17 每行数量自定义 ===== */
.yz-cols-label { margin-left: 6px; }
#product-grid.yz-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
#product-grid.yz-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
#product-grid.yz-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
#product-grid.yz-cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)) !important; }

#product-grid.yz-list { grid-template-columns: 1fr !important; gap: 10px; }
#product-grid.yz-list .glass-card {
  display: flex;
  align-items: center;
  animation: none;
  padding-right: 18px;
}
#product-grid.yz-list .product-img-wrap {
  flex: 0 0 104px;
  width: 104px !important;
  height: 104px !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  margin: 10px;
  border-radius: 12px;
  animation: none;
}
#product-grid.yz-list .glass-card > .p-3 {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
}
#product-grid.yz-list .glass-card h4 {
  grid-column: 1;
  grid-row: 1;
  min-height: 0 !important;
  font-size: 15px;
  -webkit-line-clamp: 1;
  margin-bottom: 2px;
}
#product-grid.yz-list .yz-card-line { grid-column: 1; grid-row: 2; margin-top: 1px; }
#product-grid.yz-list .yz-card-meta { grid-column: 1; grid-row: 3; margin: 3px 0 0; }
#product-grid.yz-list .glass-card > .p-3 > p:nth-of-type(3) { grid-column: 1; grid-row: 4; }
#product-grid.yz-list .yz-card-foot {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}
#product-grid.yz-list .yz-card-price { white-space: nowrap; }
#product-grid.yz-list .card-actions { flex: 0 0 auto; }
#product-grid.yz-list .fav-btn { width: 26px; height: 26px; font-size: 13px; top: 8px; right: 8px; }
#product-grid.yz-list .seal-tag { font-size: 10px; }

@media (max-width: 640px) {
  #product-grid.yz-list .glass-card { padding-right: 12px; }
  #product-grid.yz-list .product-img-wrap {
    flex: 0 0 88px;
    width: 88px !important;
    height: 88px !important;
    min-height: 0 !important;
    margin: 9px;
  }
  /* 手机上不要用 grid：直接把文字堆一列，价格和按钮回到同一行 */
  #product-grid.yz-list .glass-card > .p-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 9px 0;
  }
  #product-grid.yz-list .glass-card h4 { font-size: 13px; line-height: 1.35; margin: 0; }
  #product-grid.yz-list .yz-card-line { display: none; }
  #product-grid.yz-list .yz-card-meta { margin: 0; font-size: 10.5px; min-height: 0; }
  #product-grid.yz-list .yz-card-foot {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 3px;
  }
  #product-grid.yz-list .yz-card-price { flex: 0 0 auto; }
  #product-grid.yz-list .card-actions { width: auto; flex: 0 0 auto; gap: 5px; }
  #product-grid.yz-list .card-actions .yz-act-cmp { flex: 0 0 32px; height: 30px; }
  #product-grid.yz-list .card-actions .yz-act-buy { flex: 0 0 auto; height: 30px; padding: 0 10px; font-size: 11.5px; }
  #product-grid.yz-list .fav-btn { display: none; }
}

/* 列表视图下不要「折叠两行 + 拖拽展开」那一套 —— 列表本来就是用来一屏看十几条的 */
.xy-coll:has(> .xy-coll-body > #product-grid.yz-list) > .xy-coll-body {
  height: auto !important;
  overflow: visible !important;
}
.xy-coll:has(> .xy-coll-body > #product-grid.yz-list) > .xy-coll-grip,
.xy-coll:has(> .xy-coll-body > #product-grid.yz-list) .xy-coll-fade {
  display: none !important;
}

/* ---- 花型筛选（绒花类目下出现） ---- */
.yz-flower-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
}
.yz-flower-label {
  font-size: 12px;
  color: #8b7a5e;
  letter-spacing: .1em;
  margin-right: 2px;
}
.yz-flower-row button {
  border: 1px solid rgba(168,138,88,.32);
  background: rgba(255,252,245,.9);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #7a6a51;
  cursor: pointer;
  transition: all .18s;
}
.yz-flower-row button:hover { border-color: rgba(163,47,38,.45); color: #a32f26; }
.yz-flower-row button.on { background: #a32f26; border-color: #a32f26; color: #fdf7ec; }
.yz-flower-row button .n { opacity: .5; font-size: 10.5px; margin-left: 4px; }
.yz-flower-row button.on .n { opacity: .85; }

@media (max-width: 768px) {
  .yz-flower-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 14px;
  }
  .yz-flower-row::-webkit-scrollbar { display: none; }
  .yz-flower-row button, .yz-flower-label { flex: 0 0 auto; }
}

/* 花型行下面紧挨着「查看方式」时补一点间距（移动端原样式是负边距上提） */
.yz-flower-row + .yz-view-row { margin-top: 8px; margin-bottom: 14px; }
@media (max-width: 768px) {
  .yz-flower-row + .yz-view-row { margin-top: 4px; }
}

/* ============================================================
   2026-11-14 · UI 精修 v2「让客人第一屏就看到货」
   ------------------------------------------------------------
   客人的视线顺序是：这是卖什么的 → 有什么可挑 → 多少钱 → 怎么买。
   现状把这四步拆得太散：
     · 首屏 min-h:100svh 全给了插画与抒情，PC 与手机首屏都是 0 件商品；
     · 区块 padding 96px，上下相邻就是 192px 空白，页面被拉长到 10805px；
     · 卡片里名称 16 / 卖点 12 / 分类 11 三层字，灰度也接近，扫读分不出主次；
     · 图片 object-contain 还压着 20px 内边距，商品实际只占图框 85%。
   下面按 首屏 → 节奏 → 卡片 → 图片 → 手机 逐层收，只改视觉不动逻辑。
   ============================================================ */

:root {
  --yz-ink: #3a2515;
  --yz-ink-2: #6f5f4b;
  --yz-ink-3: #9a8a72;
  --yz-gold: #a8814a;
  --yz-red: #a32f26;
  --yz-line: rgba(150, 118, 76, .18);
  --yz-paper: #fdfaf4;
}

/* ---------- 1. 首屏：从满屏让出一半给商品 ---------- */
#hero.yz-hero-lean {
  min-height: auto !important;
  padding-top: 104px !important;
  padding-bottom: 34px !important;
}
#hero.yz-hero-lean .hero-title {
  font-size: clamp(2.25rem, 3.2vw, 3rem) !important;
  line-height: 1.14 !important;
  margin-bottom: 14px !important;
  letter-spacing: .05em !important;
}
#hero.yz-hero-lean .yz-hero-desc {
  font-size: .88rem !important;
  line-height: 1.95 !important;
  max-width: 468px !important;
  margin-bottom: 20px !important;
}
#hero.yz-hero-lean .yz-hero-actions { gap: 10px !important; }
#hero.yz-hero-lean .yz-hero-actions > * { min-height: 46px !important; }
#hero.yz-hero-lean .trust-strip { margin-top: 13px !important; }
#hero.yz-hero-lean .hero-bigcard {
  margin-top: 16px !important;
  padding: 10px 16px 10px 13px !important;
}
#hero .yz-hero-grid { gap: clamp(20px, 3vw, 44px) !important; align-items: center !important; }
#hero .yz-hero-art img { max-height: 372px !important; width: auto !important; }

/* ---------- 2. 节奏：96px 的段落边距收到 60px ---------- */
section[class~="py-16"] {
  padding-top: 44px !important;
  padding-bottom: 44px !important;
}
@media (min-width: 768px) {
  section[class~="py-16"] {
    padding-top: 62px !important;
    padding-bottom: 62px !important;
  }
}

/* ---------- 3. 商品卡：名称立住，价格靠前，标签退后 ---------- */
#product-grid .glass-card {
  border-radius: 14px !important;
}
#product-grid .glass-card > div:last-child {
  padding: 12px 14px 13px !important;
}
#product-grid .glass-card h4.font-elegant {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: .015em !important;
  color: var(--yz-ink) !important;
  min-height: 2.9em !important;
  margin: 0 !important;
}
#product-grid .yz-card-line {
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: #7d6c53 !important;
  margin: 7px 0 0 !important;
}
#product-grid .yz-card-meta {
  display: inline-block !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: .14em !important;
  color: #9a8a6e !important;
  background: rgba(168, 138, 88, .09) !important;
  border: 1px solid rgba(168, 138, 88, .18) !important;
  border-radius: 3px !important;
  padding: 4px 6px 3px !important;
  margin: 9px 0 0 !important;
  min-height: 0 !important;
}
#product-grid .yz-card-foot {
  margin-top: 11px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(150, 118, 76, .1) !important;
}
#product-grid .yz-card-price .font-elegant {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--yz-red) !important;
  letter-spacing: .01em !important;
}
#product-grid .yz-card-foot .mini-act {
  height: 32px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
#product-grid .yz-card-foot .yz-cmp-t { font-size: 11.5px !important; color: #9a8a72 !important; }
#product-grid .yz-buy-main {
  background: #7d3a30 !important;
  border-color: #7d3a30 !important;
  color: #fdf7ec !important;
  font-weight: 500 !important;
  letter-spacing: .06em !important;
}
#product-grid .yz-buy-main:hover { background: #8f4438 !important; }

/* ---------- 4. 图片：把 20px 内衬收到 12px，商品大一圈 ---------- */
#product-grid .glass-card .product-img-wrap img {
  padding: 12px !important;
}
#product-grid .glass-card .product-img-wrap {
  background: linear-gradient(150deg, #fbf6ec 0%, #f7f0e2 100%) !important;
}
#product-grid .glass-card .fav-btn {
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
  opacity: .55;
}
#product-grid .glass-card:hover .fav-btn { opacity: 1; }

/* ---------- 5. 手机：首屏给商品让位，横滑卡加边界提示 ---------- */
@media (max-width: 767.98px) {
  #hero.yz-hero-lean {
    padding-top: 84px !important;
    padding-bottom: 22px !important;
  }
  #hero.yz-hero-lean .hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }
  #hero.yz-hero-lean .yz-hero-desc {
    font-size: .84rem !important;
    line-height: 1.85 !important;
    margin-bottom: 16px !important;
  }
  #hero.yz-hero-lean .yz-hero-actions > * { min-height: 44px !important; font-size: 14px !important; }
  #hero.yz-hero-lean .hero-bigcard { margin-top: 14px !important; padding: 9px 14px !important; }
  #hero .yz-hero-art img { max-height: 178px !important; }
  #hero .yz-hero-grid { gap: 14px !important; }

  section[class~="py-16"] {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  #product-grid .glass-card h4.font-elegant { font-size: 13.5px !important; }
  #product-grid .yz-card-line { font-size: 11.5px !important; }
  #product-grid .yz-card-price .font-elegant { font-size: 16px !important; }
  #product-grid .glass-card .product-img-wrap img { padding: 10px !important; }
}

/* ============================================================
   UI 精修 v2.1 · 收尾：首屏再挤一挤、横向卡给边界感
   ============================================================ */

/* 1. 首屏底边与下方内容原本是硬切（浅米渐变撞白底），改成收束到页面底色 */
#hero.yz-hero-lean::before {
  background-image: linear-gradient(180deg, #fdfaf3 0%, #fbf6ea 56%, #faf7f1 96%) !important;
}

/* 2. 节日入口行：手机上原来 6 个胶囊折成 3+3 两行，还压着 48px 下边距 */
.hero-entry-row {
  margin-bottom: 15px !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.hero-entry-row::-webkit-scrollbar { display: none; }
.hero-entry-row > * { flex: 0 0 auto; }
.hero-entry-row .landmark-card { transform: none !important; }

@media (min-width: 768px) {
  .hero-entry-row {
    margin-bottom: 18px !important;
    flex-wrap: wrap !important;
  }
}

/* 3. 当季横滑：右侧渐隐，告诉客人「后面还有」，并吸附对齐 */
.yz-rail-wrap::after {
  content: '';
  position: absolute;
  top: 54px;
  right: 28px;
  bottom: 6px;
  width: 64px;
  background: linear-gradient(90deg, rgba(250, 247, 241, 0), rgba(250, 247, 241, .97));
  pointer-events: none;
  z-index: 2;
}
.yz-rail-track {
  scroll-snap-type: x proximity;
  scroll-padding-left: 4px;
}
.yz-rail-card { scroll-snap-align: start; }

@media (max-width: 767.98px) {
  .yz-rail-wrap::after {
    top: 46px;
    right: 18px;
    width: 46px;
  }
}

/* 4. 「对比」退成辅助动作：不加底色、字更轻，主按钮只留「+ 入盒」一个 */
#product-grid .yz-act-cmp {
  background: transparent !important;
  border-color: rgba(150, 118, 76, .2) !important;
  color: #a89a83 !important;
  padding: 0 9px !important;
}
#product-grid .yz-act-cmp:hover {
  border-color: rgba(163, 47, 38, .4) !important;
  color: #a32f26 !important;
}

/* 5. 手机：首屏图片再收 28px，让「当季好物」标题露进第一屏 */
@media (max-width: 767.98px) {
  #hero.yz-hero-lean { padding-top: 76px !important; padding-bottom: 18px !important; }
  #hero .yz-hero-art img { max-height: 150px !important; }
  #hero.yz-hero-lean .hero-bigcard { margin-top: 12px !important; padding: 8px 12px !important; }
  #hero.yz-hero-lean .trust-strip { margin-top: 10px !important; }
  .hero-entry-row .landmark-card { padding: 5px 11px !important; }
  section[class~="py-16"] { padding-top: 30px !important; padding-bottom: 30px !important; }
}

/* 6. 桌面区块间距再收 6px，页面短一点更连贯 */
@media (min-width: 768px) {
  section[class~="py-16"] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}

/* 节日入口行若被上层改成 grid，这里强制回 flex 单行（手机），桌面仍换行 */
.hero-entry-row { display: flex !important; flex-wrap: nowrap !important; }
@media (min-width: 768px) {
  .hero-entry-row { flex-wrap: wrap !important; }
}

/* 节日入口：上层把容器改成了 grid（3 列 × 2 行），这里用最高特异性压回单行横滑 */
#hero.yz-hero-lean .hero-entry-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: none !important;
}
#hero.yz-hero-lean .hero-entry-row > * { flex: 0 0 auto !important; }
@media (min-width: 768px) {
  #hero.yz-hero-lean .hero-entry-row { flex-wrap: wrap !important; overflow-x: visible !important; }
}

/* 首屏与下方内容原本在 hero 底边撞色（#faf7f1 → #faf5ea 差 6 阶，能看出硬线）。
   直接把首屏渐变收束到下方同一底色，边界消失。 */
#hero.yz-hero-lean::before { background-image: none !important; }
#hero.yz-hero-lean {
  background-image: linear-gradient(180deg, #fdfaf3 0%, #fbf7ec 58%, #faf5ea 100%) !important;
  border-bottom: 0 !important;
}
@media (max-width: 767.98px) {
  #yz-rail.yz-rail { padding-top: 22px !important; }
}

/* ============================================================
   详情弹层：左图太小、左栏下半截空着、内容要滚两屏才见按钮
   加宽到 860，左栏给到 420，商品图从 240 提到 400 左右
   ============================================================ */
@media (min-width: 768px) {
  #product-modal { max-width: 862px !important; }
  #product-modal > .grid { grid-template-columns: 414px minmax(0, 1fr) !important; }
  #product-modal .grid > div:first-child {
    min-height: 512px !important;
    padding: 26px 24px !important;
  }
  #product-modal .grid > div:first-child img {
    width: 100% !important;
    height: auto !important;
    max-height: 424px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(96, 66, 38, .08);
  }
  #product-modal .grid > div:last-child { padding: 26px 28px 24px !important; }
  #product-modal #modal-specs { gap: 6px !important; }
  #product-modal #modal-specs > div { padding: 7px 11px !important; }
}

/* 商品卡信息区再收紧 8px，卡片不至于太瘦长 */
#product-grid .yz-card-foot { margin-top: 9px !important; padding-top: 9px !important; }
#product-grid .yz-card-meta { margin-top: 8px !important; }

/* 彩图（带促销字样的电商图）与白底图混排时，给图自己一个圆角，弱化边界突兀 */
#product-grid .glass-card .product-img-wrap img { border-radius: 7px !important; }

/* 详情弹层·左图：右文很长会把左栏一起拉到 1200+ 高，图片被悬在中间、上下都是空。
   改成图片栏吸顶固定，右文滚动时图一直看得见——这也是大多数商详的做法。 */
@media (min-width: 768px) {
  #product-modal > .grid { align-items: start !important; }
  #product-modal .grid > div:first-child {
    position: sticky !important;
    top: 0 !important;
    align-self: start !important;
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }
  #product-modal .modal-lineart { padding: 14px !important; }
  /* 有真实图时把 emoji 占位收掉（:has 判断，老浏览器不认也无副作用） */
  #product-modal .grid > div:first-child:has(img.modal-lineart[src]) #modal-emoji { display: none !important; }
}
@media (min-width: 768px) {
  #product-modal .grid > div:first-child { height: 424px !important; min-height: 424px !important; max-height: 424px !important; }
  #product-modal .modal-lineart { padding: 10px !important; }
}

/* 手机端「+ 入盒」被继承成土金色，与桌面深红割裂——统一成主色，去掉渐变 */
#product-grid .yz-act-buy,
#product-grid .yz-buy-main {
  background: #7d3a30 !important;
  background-image: none !important;
  border-color: #7d3a30 !important;
  color: #fdf7ec !important;
}
#product-grid .yz-act-buy:hover { background: #8f4438 !important; }

@media (max-width: 767.98px) {
  /* 卖点占两行把卡片拉得太高，手机只留一行 */
  #product-grid .yz-card-line {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
    overflow: hidden !important;
  }
  #product-grid .glass-card .product-img-wrap img { padding: 8px !important; }
  #product-grid .yz-card-foot { margin-top: 8px !important; padding-top: 8px !important; }
}

/* 手机详情：商品图只有 130px，还被品类标签压住下沿 */
@media (max-width: 767.98px) {
  #product-modal .grid > div:first-child {
    min-height: 246px !important;
    padding: 10px 12px 42px !important;
  }
  #product-modal .modal-lineart { padding: 4px !important; }
  #product-modal .grid > div:first-child > div:last-child { bottom: 12px !important; left: 12px !important; }
}

/* 手机详情左栏改为纵向流式：图在上、品类标签在下，不再互相压 */
@media (max-width: 767.98px) {
  #product-modal .grid > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 12px 10px !important;
  }
  #product-modal .modal-lineart {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 232px !important;
    object-fit: contain !important;
    padding: 0 !important;
  }
  #product-modal .grid > div:first-child > div:last-child {
    position: static !important;
    margin-top: 7px !important;
    justify-content: center !important;
    width: 100% !important;
  }
}

/* 手机端也要收掉 emoji 占位（上面那条只在桌面断点生效） */
#product-modal .grid > div:first-child:has(img.modal-lineart[src]) #modal-emoji { display: none !important; }

/* 手机端「+ 入盒」被 #product-grid .card-actions .mini-act:last-child 的金色渐变压住（特异性 1,2,1），
   这里提到 1,4,1 才盖得住 */
#product-grid .glass-card .card-actions .mini-act.yz-buy-main,
#product-grid .glass-card .card-actions .mini-act.yz-act-buy {
  background: #7d3a30 !important;
  background-image: none !important;
  border-color: #7d3a30 !important;
  color: #fdf7ec !important;
}

/* ===== 客人视角收尾：手机底部悬浮条瘦身 + 页面末尾让位 =====
   原悬浮条 60px 高 + 12px 底边，且文档底部无留白，滚到底时最后一排商品被永久压住
   （客人以为只有这几件）。这里压成单行胶囊，并给文档补足底部安全区。 */
@media (max-width: 767.98px) {
  #xy-quickbar {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 8px 10px !important;
    padding-right: 66px !important;
    border-radius: 15px !important;
    gap: 8px !important;
    background: rgba(43,31,19,0.90) !important;
  }
  /* 两行文字压成一行：只留行动句，副标隐藏 */
  #xy-quickbar .qb-info { display: flex !important; align-items: center !important; }
  #xy-quickbar .qb-info .qb-t { display: none !important; }
  #xy-quickbar .qb-info .qb-v { font-size: 13.5px !important; line-height: 1.25 !important; }
  #xy-quickbar .qb-btn { padding: 8px 12px !important; font-size: 12.5px !important; }
  #xy-quickbar .qb-btn.main { background: #a32f26 !important; background-image: none !important; }

  /* 文档末尾留出悬浮条高度，滚到底时最后一行商品能完全露出 */
  body.xy-qb-on { padding-bottom: 74px !important; }
}

/* ===== 客人视角：手机首屏竖排节奏收紧 =====
   实测 390×844 首屏里「前言」占了 739px，第一张商品卡要到 y≈825 才露头，
   客人进站先读一屏半文案才看见货。这里逐项收边距、压插画、把简介收到 3 行，
   目标把「当季好物」提到第一屏底部可见。 */
@media (max-width: 767.98px) {
  #hero.yz-hero-lean { padding-bottom: 8px !important; }
  #hero.yz-hero-lean .hero-subtitle { margin-bottom: 10px !important; }
  #hero.yz-hero-lean .hero-title { margin-bottom: 10px !important; }
  #hero.yz-hero-lean .yz-hero-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
  }
  #hero.yz-hero-lean .yz-hero-actions { margin-bottom: 10px !important; }
  #hero.yz-hero-lean .yz-festival-kicker { margin-bottom: 8px !important; }
  #hero .yz-hero-art img { max-height: 124px !important; }
  #hero.yz-hero-lean .yz-hero-art { margin-top: 6px !important; }

  /* 节日入口原来横向滑动，第 5 个被切掉半个字，看着像没做完。
     改成等宽三列两行，6 个入口一眼全见。 */
  #hero.yz-hero-lean .hero-entry-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-content: center !important;
    gap: 8px !important;
    grid-template-columns: none !important;
    overflow: visible !important;
    margin-bottom: 12px !important;
  }
  #hero.yz-hero-lean .hero-entry-row > .landmark-card {
    flex: 0 0 calc((100% - 16px) / 3) !important;
    justify-content: center !important;
  }
  #hero.yz-hero-lean .hero-entry-row .landmark-name { text-align: center !important; }
}

/* ===== 客人视角：商品弹层 ===== */
/* 1) 弹层一开，右下角客服球正好压在「直接下单」按钮上，客人点它会跳去聊天。
      弹层期间把客服球 / 工具列 / 底部快捷条全部让位。 */
body:has(#product-modal-overlay:not(.hidden)) .chat-fab,
body:has(#product-modal-overlay:not(.hidden)) .float-tools,
body:has(#product-modal-overlay:not(.hidden)) #xy-quickbar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(14px) !important;
}

/* 2) 底部操作条是透明的，正文从它底下穿过去，露出一截「好物卖点」的半个标题。
      给它一层从透明到米白的渐隐底，滚到底时是干净的分界。 */
#product-modal .yz-modal-actions {
  background: linear-gradient(180deg, rgba(248,244,235,0) 0%, rgba(248,244,235,0.94) 26%, #f8f4eb 100%) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  backdrop-filter: blur(4px) !important;
}

/* 3) 桌面左栏：图片是 424px 吸顶面板，右栏文字 1182px，面板下方空出 250px 死白。
      把左栏拉满整格高度、让图片在格内吸顶，左侧变成一条连续的照片栏。 */
@media (min-width: 768px) {
  #product-modal .grid > div:first-child {
    position: relative !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-items: flex-start !important;
  }
  #product-modal .grid > div:first-child img.modal-lineart {
    position: sticky !important;
    top: 0 !important;
    height: 424px !important;
    max-height: 424px !important;
    inset: auto !important;
    width: 100% !important;
  }
}

/* ===== 客人视角：手机首屏再收 88px（实测数据驱动） =====
   实测：.yz-hero-copy 自带 54px 上内边距，而 #hero 已有 76px 上内边距，
   两段空白叠成 130px 才见到第一行字；插画 .yz-hero-art 固定 200px 高。
   这里把顶部空白合并成一段（92px，正好让过 81px 的吸顶头），插画降到 156px。 */
@media (max-width: 767.98px) {
  #hero.yz-hero-lean { padding-top: 92px !important; }
  #hero.yz-hero-lean .yz-hero-copy { padding-top: 0 !important; }
  #hero .yz-hero-art { height: 156px !important; }
  #hero.yz-hero-lean .yz-festival-kicker { margin-top: 12px !important; }
}

/* 弹层底部操作条左右贴死弹层边缘，「购买数量」和「直接下单」都顶到圆角上，
   手机上看着像被裁掉一截。补 18px 内边距。 */
#product-modal .yz-modal-actions {
  padding-left: 18px !important;
  padding-right: 18px !important;
  padding-bottom: 14px !important;
}

/* 回退上一条「左栏拉满整格」的尝试：实测把图片改成格内吸顶后，图片被压成 285px 宽，
   四周反而多出一道浅色面板边，空白更显眼。恢复成 424px 吸顶图片面板——
   左侧与弹层底色同为米色，读完右栏时不会觉得缺一块。 */
@media (min-width: 768px) {
  #product-modal .grid > div:first-child {
    position: sticky !important;
    top: 0 !important;
    align-self: auto !important;
    height: 424px !important;
    align-items: center !important;
  }
  #product-modal .grid > div:first-child img.modal-lineart {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
  }
}

/* ===== 客人视角：列表视图重排 =====
   列表视图（.yz-list）此前没跟着这轮 UI 改过。两个问题：
   ① 桌面：分类标签被撑成 889px 宽的一整条空框、价格与按钮缩到最右，
      商品名固定占两行高度，中间空一大片，像张没填完的表；
   ② 手机：整行仍是桌面网格，名称/卖点/标签全居中，价格按钮挤在右下角，
      图片只有 48px，读起来散架。
   这里按「一行一件、左图右文、价格与动作贴右」重排，两端都拉直。 */
#product-grid.yz-list .glass-card {
  align-items: center !important;
  padding-right: 16px !important;
}
#product-grid.yz-list .glass-card .p-3 {
  align-content: center !important;
  row-gap: 3px !important;
}
#product-grid.yz-list .glass-card h4.font-elegant {
  min-height: 0 !important;
  line-height: 1.35 !important;
}
#product-grid.yz-list .yz-card-meta {
  display: inline-block !important;
  width: auto !important;
  justify-self: start !important;
  align-self: center !important;
}
#product-grid.yz-list .yz-card-foot {
  justify-self: end !important;
  width: auto !important;
}

/* 手机端列表：图 76、文字左对齐、价格与动作同一行 */
@media (max-width: 767.98px) {
  #product-grid.yz-list .glass-card {
    display: flex !important;
    gap: 10px !important;
    padding: 9px 12px 9px 9px !important;
    border-radius: 14px !important;
  }
  #product-grid.yz-list .glass-card .product-img-wrap {
    flex: 0 0 76px !important;
    width: 76px !important;
    height: 76px !important;
    border-radius: 9px !important;
  }
  #product-grid.yz-list .glass-card .p-3 {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  #product-grid.yz-list .glass-card h4.font-elegant {
    text-align: left !important;
    font-size: 14px !important;
    min-height: 0 !important;
    margin: 0 0 2px !important;
  }
  #product-grid.yz-list .glass-card .yz-card-line {
    text-align: left !important;
    margin: 0 0 4px !important;
    -webkit-line-clamp: 1 !important;
  }
  #product-grid.yz-list .yz-card-meta {
    display: inline-block !important;
    width: auto !important;
    text-align: left !important;
    margin: 0 0 6px !important;
  }
  #product-grid.yz-list .yz-card-meta:empty { display: none !important; }
  #product-grid.yz-list .yz-card-foot {
    width: 100% !important;
    justify-content: space-between !important;
    padding-top: 0 !important;
  }
  #product-grid.yz-list .yz-card-price .font-elegant { font-size: 15px !important; }
  #product-grid.yz-list .glass-card .card-actions .mini-act { height: 28px !important; font-size: 12px !important; }
}

/* 列表视图再压一行：.yz-card-line 在 640px 以下被强制 min-height:3.1em（网格视图用来对齐两行卖点），
   列表视图里只有一行卖点，白留出 18px；底栏也补成单行不折。 */
@media (max-width: 767.98px) {
  #product-grid.yz-list .glass-card .yz-card-line {
    min-height: 0 !important;
    -webkit-line-clamp: 1 !important;
  }
  #product-grid.yz-list .glass-card .yz-card-foot {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-top: 2px !important;
    align-items: center !important;
  }
  #product-grid.yz-list .yz-card-price { flex: 0 0 auto !important; }
  #product-grid.yz-list .card-actions { width: auto !important; flex: 0 1 auto !important; }
}

/* 列表视图里没有分类的商品会留一个空的浅色小胶囊（如「雕花葫芦」），像是没加载出来。 */
#product-grid.yz-list .yz-card-meta:empty { display: none !important; }

/* 手机列表的行动作按钮被 min-height:44px 撑着，比价格还高，行高被拖到 141px。
   收到 30px（仍在可点范围内，且列表里不需要拇指大面积命中的「加入礼盒」主行动）。 */
@media (max-width: 767.98px) {
  #product-grid.yz-list .glass-card .card-actions .mini-act {
    min-height: 30px !important;
    height: 30px !important;
  }
  #product-grid.yz-list .glass-card .yz-card-meta { margin-bottom: 4px !important; }
}

/* 网格视图里没有分类的商品（如「雕花葫芦」）标签是空的，那一行卡片会比相邻行矮 9px，
   整页看下来行高忽高忽低。给标签留一个固定占位，空的也占位。 */
#product-grid:not(.yz-list) .yz-card-meta { min-height: 19px !important; }

/* ===== 客人视角：平板宽度（768–1023）的头部 =====
   实测 768 宽时头部导航挤成两行（「扬州特 / 产」「节日礼 / 盒」），品牌名也断行，
   头部从 81px 涨到 115px，反过来把首屏第一行小字压到导航底下。
   这一段里收字号、收间距、禁止折行，头部回到一行。 */
@media (min-width: 768px) and (max-width: 1023.98px) {
  #navbar nav {
    gap: 12px !important;
    font-size: 12.5px !important;
  }
  #navbar nav a { white-space: nowrap !important; }
  #navbar h1 { white-space: nowrap !important; font-size: 1.35rem !important; }
  #navbar .seal-circle { width: 40px !important; height: 40px !important; }
  #navbar .seal-circle div div { font-size: 0.72rem !important; }
  #navbar .text-xs { display: none !important; }
  #navbar .nav-search-btn { width: 40px !important; height: 40px !important; }
}

/* 上一条给 body 补的 74px 底部留白，露在深色页脚下面变成一条米色尾巴（body 底色 #f7e7ce）。
   改成把留白塞进页脚内部，页脚自己的深色渐变就把它盖住了。 */
@media (max-width: 767.98px) {
  body.xy-qb-on { padding-bottom: 0 !important; }
  body.xy-qb-on footer { padding-bottom: 132px !important; }
}

/* 空分类占位块保留高度但不画面（否则「雕花葫芦」下面挂一个空的米色小胶囊）。 */
#product-grid:not(.yz-list) .yz-card-meta:empty { visibility: hidden !important; }

/* ===== 当季热销礼盒：内搭清单整齐化 =====
   15 款礼盒里有 13 款的描述是「一句引子 + 换行 + 内含：清单 + 后续段落」，
   旧解析只认「内含：」开头的，全部退化成一大段折行文字 → 客人看到的是「行乱了」。
   JS 已改为全文识别「内含：」并按行取清单，这里补两件事：
   ① 名称下方那句引子的样式；
   ② 清单条目收紧行距、项目符对齐，保证「一排一排顶头」左边缘齐平。 */
#special-grid .special-card .xy-card-intro {
  margin: -7px 0 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #9a7f5f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 清单条目：一行一项，左边缘统一缩进，项目符与首字同一基线 */
#special-grid .xy-inner-list {
  gap: .2rem;
}
#special-grid .xy-inner-item {
  padding-left: .8rem;
  font-size: .76rem;
  line-height: 1.45;
  text-indent: 0;
}
#special-grid .xy-inner-item::before {
  left: .18rem;
  top: 0;
  line-height: 1.45;
}
/* 包装行与好物行之间加一道细分隔，视觉上不再混成一串 */
#special-grid .xy-inner-item.xy-inner-pack {
  margin-top: .1rem;
  padding-top: .28rem;
  border-top: 1px dashed rgba(184, 148, 90, .28);
}

/* ===== 2026-11-14：内搭清单改成「一行一项、整行左顶头」 =====
   原样式把「×1」绝对定位到行右侧（right:0），名称与数量之间留出 30px 空档，
   在 250px 宽的卡片里像一张没对齐的两列表，客人看着就是「行乱」。
   现在数量收回名称后方，整行从左侧 11px 起排，每行一项、左边缘完全齐平。 */
#special .special-card .xy-inner-item {
  padding: 0 0 0 11px;
}
#special .special-card .xy-inner-item + .xy-inner-item {
  margin-top: 5px;
}
#special .special-card .xy-inner-count {
  position: static;
  display: inline;
  margin-left: 5px;
  font-size: 10.5px;
  color: #bda67f;
  white-space: nowrap;
}

/* 手机端最多 2 列，保证卡片可读 */
@media (max-width: 767.98px) {
  #product-grid.yz-cols-3,
  #product-grid.yz-cols-4,
  #product-grid.yz-cols-5 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .yz-cols-seg button { padding: 6px 9px; }
  .yz-view-row { flex-wrap: wrap; }
}
