/* 首页补全模块：快捷入口 + 限时秒杀（原编译包缺失对应 layout-v2 组件） */
.qe-block {
  --qe-accent: var(--h5-primary, #ff4d6d);
  --qe-surface: var(--h5-surface, #ffffff);
  --qe-muted: var(--h5-muted, #8a8f9c);
  --qe-border: var(--h5-border, #ececf2);
  margin: 10px 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.qe-quick {
  background: var(--qe-surface);
  border-radius: var(--h5-card-radius, 14px);
  box-shadow: 0 2px 12px rgba(24, 28, 48, 0.05);
}
.qe-quick--five {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 14px 6px 12px;
}
.qe-five-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.qe-five-item:active, .qe-card-item:active, .qe-three-item:active { opacity: .7; }
.qe-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--qe-accent);
  background: color-mix(in srgb, var(--qe-accent) 12%, #fff);
  flex: none;
}
.qe-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qe-ico i {
  display: none;
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
}
.qe-ico.is-fallback i { display: block; }
.qe-ico.is-fallback img { display: none; }
.qe-five-name {
  font-size: 12px;
  line-height: 16px;
  color: var(--h5-text, #1f2430);
  font-weight: 500;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* 方案二：横向长条卡片 */
.qe-quick--card { padding: 12px 10px; }
.qe-card-row {
  display: grid;
  gap: 8px;
}
.qe-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.qe-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.qe-card-name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--qe-accent);
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* 方案一：两个宽横幅入口 */
.qe-quick--three {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}
.qe-three-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.qe-three-img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  border-radius: 10px;
}
.qe-three-name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--h5-text, #1f2430);
  font-weight: 500;
  text-align: center;
}

.qe-flash {
  padding: 12px 12px 14px;
  background: var(--qe-surface);
  border-radius: var(--h5-card-radius, 14px);
  box-shadow: 0 2px 12px rgba(24, 28, 48, 0.05);
  overflow: hidden;
}
.qe-flash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.qe-flash-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--h5-text, #1f2430);
}
.qe-flash-title svg { width: 18px; height: 18px; color: var(--qe-accent); }
.qe-flash-count {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
}
.qe-flash-count span {
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  border-radius: 5px;
  background: var(--qe-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.qe-flash-count i {
  font-style: normal;
  color: var(--qe-accent);
  font-size: 12px;
  font-weight: 700;
}
.qe-flash-more {
  font-size: 12px;
  color: var(--qe-muted);
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.qe-flash-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.qe-flash-scroll::-webkit-scrollbar { display: none; }
.qe-sale-card {
  flex: 0 0 96px;
  width: 96px;
  cursor: pointer;
}
.qe-sale-card:active { opacity: .8; }
.qe-sale-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f6fa;
}
.qe-sale-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qe-sale-badge {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 6px;
  border-radius: 0 0 8px 0;
  background: var(--qe-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
}
.qe-sale-title {
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--h5-text, #1f2430);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qe-sale-price {
  margin-top: 3px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.qe-sale-price b {
  color: var(--qe-accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
}
.qe-sale-price b::before {
  content: '¥';
  font-size: 11px;
  margin-right: 1px;
}
.qe-sale-price s {
  color: var(--qe-muted);
  font-size: 11px;
  text-decoration: line-through;
}
.qe-sale-price s::before { content: '¥'; }
.qe-sale-sold {
  margin-top: 2px;
  font-size: 10px;
  color: var(--qe-muted);
}
.qe-flash-empty {
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: var(--qe-muted);
}

/* ==========================================================================
   前端设置：首页商品每排数量 + 一级分类形状（后台「系统设置 > 前端设置」）
   通过 <html data-goods-cols> / <html data-cat-shape> 由 home-extras.js 注入
   ========================================================================== */
/* 商品列表：把原来的 2 列 flex 改成 N 列 grid；grid-col 设为 contents 让其
   内部的 .card 直接成为 grid 项，从而按配置列数自动排布，无需改动编译 JS。 */
html[data-goods-cols] .grid[data-v-f3d8a59d] {
  display: grid !important;
  grid-template-columns: repeat(attr(data-goods-cols), 1fr);
  column-gap: 3% !important;
  row-gap: .625rem;
}
html[data-goods-cols="1"] .grid[data-v-f3d8a59d] { grid-template-columns: repeat(1, 1fr); }
html[data-goods-cols="2"] .grid[data-v-f3d8a59d] { grid-template-columns: repeat(2, 1fr); }
html[data-goods-cols="3"] .grid[data-v-f3d8a59d] { grid-template-columns: repeat(3, 1fr); }
html[data-goods-cols="4"] .grid[data-v-f3d8a59d] { grid-template-columns: repeat(4, 1fr); }
html[data-goods-cols="5"] .grid[data-v-f3d8a59d] { grid-template-columns: repeat(5, 1fr); }
html[data-goods-cols="6"] .grid[data-v-f3d8a59d] { grid-template-columns: repeat(6, 1fr); }
html[data-goods-cols] .grid[data-v-f3d8a59d] > .grid-col[data-v-f3d8a59d] {
  display: contents !important;
}
html[data-goods-cols] .grid[data-v-f3d8a59d] .card[data-v-f3d8a59d] {
  margin-bottom: 0 !important;
}
/* 列数增多时压缩卡片内边距，避免挤压 */
html[data-goods-cols="5"] .card-body[data-v-f3d8a59d],
html[data-goods-cols="6"] .card-body[data-v-f3d8a59d] { padding: .25rem .3rem 0 !important; }

/* 二级分类标签形状：rect=长方形(小圆角)，capsule=胶囊(全圆角)
   目标为首页「全部 / 代练」那排二级分类标签 .subcat-pill，
   不影响顶部一级分类图标宫格。 */
html[data-cat-shape="rect"] .subcat-pill[data-v-f3d8a59d] {
  border-radius: .18rem !important;
  corner-shape: superellipse(2) !important;
}
html[data-cat-shape="capsule"] .subcat-pill[data-v-f3d8a59d] {
  border-radius: 999px !important;
  corner-shape: round !important;
}

/* ==========================================================================
   点击颜色：二级分类选中态 + 一级分类下方指示条（后台「前端设置 > 点击颜色」）
   CSS 变量 --fs-active-color / --fs-active-text 由 home-extras.js 注入
   ========================================================================== */
/* 二级分类：点击选中的标签背景 */
.subcat-pill--on[data-v-f3d8a59d] {
  background: var(--fs-active-color, #111111) !important;
}
/* 二级分类：选中标签文字（浅色背景自动转深色） */
.subcat-pill--on .subcat-pill-txt[data-v-f3d8a59d] {
  color: var(--fs-active-text, #ffffff) !important;
}
/* 一级分类：选中图标下方那个小横条 */
.icon-active-line[data-v-f3d8a59d] {
  background: var(--fs-active-color, #111111) !important;
}


/* ==========================================================================
   2026-11 首页 UI 对齐参考站（https://2100it.qykj.qingyuanyiyou.com）
   1) 一级分类：56×54 圆角图标 + 满幅图片 + 方角标签（参考站 hlv2-cat）
   2) 滚动公告：背景取参考站 .hlv2-notice 计算值 #fcce01
   3) 商品卡图片闪耀：参考站 .p-sweep-beam 光束扫过
   4) 限时秒杀：按参考站 /sale-page 商品卡重构（无标题栏）
   ========================================================================== */

/* 1) 一级分类 */
/* 一级分类：按参考站 hlv2-cat 实测值 1:1（2026-11-22 重新扒取）
   实测（414×896，1rem = 17.664px）：
   图标格 72×84.2 / 右间距 8.83｜图标底 56×54 / 圆角 10 / 白底 / 投影 0 2px 5px rgba(32,56,66,.035)
   文字 上距 5.52 / 字号 12.14 / 行高 17 / 颜色 #20201e
   选中横条 22.08×3.3 / 上距 4.416｜行内上下留白 4.416 / 滚动区底距 6.624
   组件基础样式在 dynamic import 的样式表里、加载晚于本文件，故统一加 !important 才能覆盖 */
.icon-scroll[data-v-f3d8a59d] {
  width: 100% !important;
  margin: 0 0 .375rem 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  white-space: nowrap !important;
}
.icon-scroll[data-v-f3d8a59d]::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.icon-row[data-v-f3d8a59d] {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  padding: .25rem 0 !important;
  width: max-content !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
}
.icon-cell[data-v-f3d8a59d] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 4.0625rem !important;
  min-width: 4.0625rem !important;
  flex: 0 0 auto !important;
  margin: 0 .5rem 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  vertical-align: top !important;
}
.icon-box[data-v-f3d8a59d] {
  position: relative !important;
  width: 3.125rem !important;
  height: 3.0625rem !important;
  max-width: 100% !important;
  border-radius: .566rem !important;
  border: 0 !important;
  background: #ffffff !important;
  box-shadow: 0 .113rem .283rem rgba(32, 56, 66, .035) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.icon-cat-img[data-v-f3d8a59d] {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  display: block !important;
}
.icon-emoji[data-v-f3d8a59d] { font-size: 1.5rem !important; }
.icon-label[data-v-f3d8a59d] {
  margin: .3125rem 0 0 0 !important;
  font-size: .6875rem !important;
  line-height: normal !important;
  color: #20201e !important;
  text-align: center !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.icon-active-line[data-v-f3d8a59d] {
  margin: .25rem 0 0 0 !important;
  width: 1.25rem !important;
  height: .1875rem !important;
  border-radius: 999px !important;
}
.subcat-bar[data-v-f3d8a59d] { background: transparent; }
.subcat-scroll[data-v-f3d8a59d] { height: 28px; }
.subcat-row-inner[data-v-f3d8a59d] { height: 23px; }
.subcat-pill[data-v-f3d8a59d] { height: 23px; border-radius: 5px; box-shadow: none; }

/* 2) 滚动公告 */
.notice[data-v-f3d8a59d] { background: #fcce01 !important; border-radius: 8px; padding: 8px 12px; margin-bottom: .625rem; min-height: 38px; max-height: 40px; overflow: hidden; }
.notice-icon[data-v-f3d8a59d] { width: 20px; height: 20px; margin-right: 8px; }
.notice-marquee-wrap[data-v-f3d8a59d] { height: 22px; min-height: 22px; }
.notice-marquee-txt[data-v-f3d8a59d] { color: #20201e; font-size: 13px; line-height: 22px; font-weight: 400; white-space: nowrap; }
.notice-marquee-track[data-v-f3d8a59d] { white-space: nowrap; }

/* 3) 商品卡图片闪耀（参考站 .p-sweep-mask / .p-sweep-beam） */
.card[data-v-f3d8a59d] { position: relative; }
.card[data-v-f3d8a59d]::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; z-index: 12; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.58), rgba(255,255,255,0)); transform: translate(-160%) skew(-22deg); animation: p-sweep-beam-kf 2.8s ease-in-out 0s infinite normal none running; }
@keyframes p-sweep-beam-kf { 0% { transform: translate(-160%) skew(-22deg); } 100% { transform: translate(360%) skew(-22deg); } }

/* 4) 限时秒杀（参考站 sale-page 结构；无标题栏） */
.qe-flash-sale { margin: 10px 12px; }
.qe-flash-sale .sale-page-loading { padding: 18px 0; text-align: center; font-size: 12px; color: var(--h5-muted, #8a8f9c); }

/* ---- 以下规则由参考站 sale-page 组件样式移植（scoped 属性改为 data-qe-sale） ---- */
.sale-page[data-qe-sale] { width: 100%; max-width: 1080px; margin-inline: auto; container-type: inline-size; font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--h5-text, #151515); background: transparent; }
.product-list[data-qe-sale] { display: grid; gap: 2.4cqw; padding: 2.2cqw; }
.product-card[data-qe-sale] { --accent: var(--h5-primary, #ffd43b); --accent-gradient: linear-gradient(120deg, var(--h5-accent-soft, #ffea83), var(--h5-primary, #ffd133)); --card-edge: var(--h5-accent-soft, #f3e8d2); --ink: var(--h5-text, #613d15); --coupon: var(--h5-accent-soft, #fff0b8); display: grid; grid-template-columns: 32% minmax(0px, 1fr); gap: 2cqw; min-height: 31.5cqw; padding: 1.5cqw; border: 1px solid var(--card-edge); border-radius: 10px; corner-shape: superellipse(2); background: linear-gradient(120deg,var(--h5-surface, #fff),var(--h5-surface, #fffdf8)); box-shadow: var(--h5-shadow-card, 0 3px 12px #6a320d09); }
.product-card--brown[data-qe-sale] { --accent: var(--h5-text, #74401c); --accent-gradient: linear-gradient(120deg, var(--h5-primary, #a46b3b), var(--h5-text, #673513)); --card-edge: var(--h5-accent-soft, #eee1d4); --ink: var(--h5-text, #734822); --coupon: var(--h5-accent-soft, #fff0ce); }
.product-media[data-qe-sale] { display: flex; flex-direction: column; min-width: 0px; overflow: hidden; border-radius: 1.8cqw; corner-shape: superellipse(2); }
.product-photo[data-qe-sale] { position: relative; flex: 1 1 0%; overflow: hidden; }
.sale-page[data-qe-sale], .sale-page [data-qe-sale] { box-sizing: border-box; }
.product-photo[data-qe-sale] { background: var(--h5-surface-soft, #f5f3ef); }
.product-photo img[data-qe-sale] { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; }
.photo-empty[data-qe-sale] { position: absolute; inset: 0px; display: grid; place-items: center; color: var(--h5-muted, #aaa); font-size: 3cqw; }
.sale-heading[data-qe-sale] { padding: 2.5cqw 2.2cqw 0px; font-size: 4.5cqw; font-weight: 700; }
.product-title[data-qe-sale] { text-overflow: ellipsis; }
.purchase-limits[data-qe-sale] { margin-top: 0.5cqw; font-size: max(9px, 2.4cqw); color: var(--h5-muted, #8c8276); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-from[data-qe-sale] { font-size: 2cqw; }
.price.price--compact[data-qe-sale] { padding-left: 1cqw; gap: 0.2cqw; }
.price.price--compact > .price-label[data-qe-sale] { font-size: 2cqw; }
.price.price--compact > strong[data-qe-sale] { font-size: var(--price-size); }
.price.price--compact > strong > span[data-qe-sale] { font-size: 0.62em; }
.buy-button[data-qe-sale] { font-family: inherit; line-height: normal; border-radius: 0px; margin-right: 0px; }
.buy-button[data-qe-sale]::after { display: none; }
.buy-button[data-qe-sale]:disabled { opacity: 0.55; cursor: default; }
.countdown-strip[data-qe-sale] { display: flex; align-items: center; justify-content: center; flex: 0 0 4.8cqw; gap: 0.6cqw; color: var(--h5-on-primary, var(--ink)); background: var(--accent-gradient); font-size: max(10px, 2.5cqw); font-weight: 600; white-space: nowrap; }
.countdown-strip--days[data-qe-sale] { flex-wrap: wrap; flex-basis: auto; padding: 0.6cqw 0.3cqw; line-height: 1.35; }
.countdown-strip--days .countdown[data-qe-sale] { flex-basis: 100%; text-align: center; font-size: max(9px, 2.5cqw); }
.countdown[data-qe-sale] { font-size: max(10px, 2.9cqw); font-variant-numeric: tabular-nums; font-weight: 700; }
.product-card--brown .countdown-strip[data-qe-sale] { color: var(--h5-on-primary, #fff0cd); }
.product-details[data-qe-sale] { display: flex; flex-direction: column; min-width: 0px; }
.product-badges[data-qe-sale] { display: flex; align-items: center; gap: 1.0185cqw; height: max(12px, 3.2cqw); flex-shrink: 0; }
.marketing-note[data-qe-sale] { color: var(--h5-muted, #7b896a); font-size: max(9px, 2.6cqw); white-space: nowrap; }
.badge[data-qe-sale] { display: inline-flex; align-items: center; justify-content: center; height: 100%; padding: 0px 0.5556cqw; border-radius: 0.463cqw; corner-shape: superellipse(2); color: var(--h5-on-primary, #fff); font-size: max(10px, 2.5cqw); font-weight: 700; line-height: 1; white-space: nowrap; }
.badge--group[data-qe-sale] { padding-inline: 0.3704cqw; color: var(--h5-accent-text, #b86b35); background: var(--h5-accent-soft, #fff0e0); box-shadow: rgb(249, 223, 194) 0px 0px 0px 1px inset; }
.badge--brand[data-qe-sale] { padding-inline: 0.6481cqw; background: var(--h5-text, #292929); font-weight: 600; }
.badge--sale[data-qe-sale] { position: relative; padding-inline: 1.2037cqw 0.8333cqw; background: linear-gradient(110deg, rgb(244, 103, 84), rgb(227, 60, 50)); border: 0.1852cqw solid rgb(237, 85, 67); font-style: italic; text-shadow: rgb(187, 9, 0) 0.0926cqw 0.0926cqw 0.1852cqw; }
.badge--sale[data-qe-sale]::before { content: ""; position: absolute; left: 0.2778cqw; width: 0.5556cqw; height: 2.4cqw; background: var(--h5-accent-soft, #ffea74); clip-path: polygon(25% 0px, 100% 0px, 65% 100%, 0px 100%); }
.product-title[data-qe-sale] { margin: 0.5cqw 0px; overflow: hidden; font-size: max(13px, 3.5cqw); font-weight: 500; line-height: 1.25; letter-spacing: 0px; white-space: nowrap; }
.product-popularity[data-qe-sale] { display: flex; align-items: center; gap: 1.3889cqw; margin-top: 0.6cqw; height: max(14px, 3.2cqw); width: 100%; white-space: nowrap; }
.rush-meter[data-qe-sale] { position: relative; display: grid; place-items: center; flex: 1 1 0px; min-width: 0px; height: max(14px, 3.2cqw); overflow: visible; border-radius: 3cqw; corner-shape: round; background: rgb(252, 233, 226); color: rgb(166, 66, 45); font-size: max(10px, 2.5cqw); font-weight: 600; line-height: 1; }
.rush-meter[data-qe-sale]::before { content: ""; position: absolute; inset: 0px auto 0px 0px; width: var(--sold-progress, 0%); border-radius: inherit; corner-shape: round; background: linear-gradient(90deg, rgb(255, 175, 139), rgb(255, 120, 89)); }
.rush-label[data-qe-sale] { position: relative; z-index: 2; text-shadow: rgba(255, 255, 255, 0.533) 0px 1px 1px; }
.rush-flames[data-qe-sale] { --flame-width: calc(max(14px, 3.2cqw)*3.3); position: absolute; top: 50%; left: clamp(0px,calc(var(--sold-progress, 0%) - var(--flame-width) * .7083333333),calc(100% - var(--flame-width))); width: var(--flame-width); height: 165%; transform: translateY(-50%); pointer-events: none; opacity: 0; z-index: 1; transition: left 0.6s; }
.product-card--active .rush-flames[data-qe-sale] { opacity: 0.95; }
.rush-flame[data-qe-sale] { position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; overflow: visible; }
.flame-tail[data-qe-sale], .flame-tail-inner[data-qe-sale] { transform-box: view-box; transform-origin: 70.8333% 50%; }
.flame-silhouette path[data-qe-sale], .flame-silhouette ellipse[data-qe-sale] { fill: rgb(255, 255, 255); }
.sales-count[data-qe-sale] { flex: 0 0 auto; margin-left: auto; text-align: right; color: var(--h5-muted, #938675); font-size: max(10px, 2.7cqw); letter-spacing: -0.0926cqw; }
.offer[data-qe-sale] { position: relative; margin-top: auto; padding-top: 2.8cqw; }
.coupon[data-qe-sale] { position: absolute; z-index: 2; top: 0px; left: 0px; display: inline-flex; align-items: center; height: max(13px, 3.6cqw); padding: 0px 1.5741cqw 0px 1.2963cqw; border-radius: 3cqw; corner-shape: round; background: var(--coupon); color: var(--ink); font-size: max(10px, 2.7cqw); letter-spacing: 0px; white-space: nowrap; box-shadow: rgba(139, 91, 18, 0.125) 0px 1px 3px; }
.coupon[data-qe-sale]::after { content: ""; position: absolute; bottom: -0.9259cqw; left: 3.6111cqw; border-top: 1.1111cqw solid var(--coupon); border-left: 0.6481cqw solid transparent; border-right: 0.6481cqw solid transparent; }
.coupon svg[data-qe-sale] { width: 1.9444cqw; height: 2.963cqw; margin-right: 0.0926cqw; flex: 0 0 auto; }
.offer-panel[data-qe-sale] { display: flex; height: 10cqw; overflow: hidden; border-radius: 0px 1.6cqw 1.6cqw; corner-shape: round superellipse(2) superellipse(2); background: linear-gradient(100deg,var(--h5-surface-soft, #fff9eb),var(--h5-accent-soft, #fff0ce)); }
.price[data-qe-sale] { display: flex; align-items: baseline; align-self: center; gap: 0.5556cqw; padding-left: 2.963cqw; transform: translateY(-0.2778cqw); color: var(--ink); white-space: nowrap; }
.price-label[data-qe-sale] { font-size: max(10px, 2.5cqw); font-weight: 500; }
.price > strong[data-qe-sale] { font-size: 6.8519cqw; font-weight: 500; line-height: 1; letter-spacing: -0.2778cqw; }
.price > strong > span[data-qe-sale] { font-size: 4.2593cqw; letter-spacing: -0.1852cqw; }
.buy-button[data-qe-sale] { position: relative; display: flex; align-items: center; justify-content: flex-end; flex: 0 0 19cqw; margin-left: auto; padding: 0px 1.4815cqw 0px 0px; border: 0px; color: var(--h5-on-primary, var(--ink)); background: var(--accent-gradient); clip-path: polygon(7% 0px, 100% 0px, 100% 100%, 7% 100%, 7% 60%, 0px 60%); cursor: pointer; -webkit-tap-highlight-color: transparent; isolation: isolate; }
.discount[data-qe-sale] { position: absolute; inset: 0px auto 0px 0px; display: flex; align-items: center; flex-direction: column; width: 10.2cqw; padding-top: 1.0185cqw; background: linear-gradient(110deg,var(--h5-accent-soft, #ffed8f),var(--h5-accent-soft, #fff2b0)); clip-path: polygon(12% 0px, 100% 0px, 80% 53%, 93% 53%, 14% 100%, 14% 60%, 0px 60%); font-size: max(10px, 2.5cqw); line-height: 1.03; color: var(--ink); z-index: 1; }
.buy-label[data-qe-sale] { position: relative; z-index: 2; font-size: 6.6cqw; font-weight: 900; font-style: italic; line-height: 1; }
.product-card--brown .buy-label[data-qe-sale] { color: var(--h5-on-primary, #fff1cd); }
.product-card--brown .discount[data-qe-sale] { color: var(--h5-text, #603107); }
.buy-button[data-qe-sale]:hover { filter: brightness(0.97); }
.buy-button[data-qe-sale]:active { filter: brightness(0.92); }
uni-button[data-qe-sale]:focus-visible, button[data-qe-sale]:focus-visible { outline: rgb(189, 42, 32) solid 0.2778cqw; outline-offset: -0.463cqw; }
.product-card[data-qe-sale] { transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.product-photo img[data-qe-sale] { transform-origin: center center; }
.countdown-strip[data-qe-sale]::before { content: ""; flex: 0 0 1cqw; width: 1cqw; height: 1cqw; border-radius: 50%; corner-shape: round; background: currentcolor; opacity: 0.7; }
.rush-meter[data-qe-sale]::before { transition: width 0.6s; }
.buy-button[data-qe-sale]::before { content: ""; position: absolute; inset: 0px auto 0px 0px; pointer-events: none; opacity: 0; background: linear-gradient(90deg,transparent,var(--h5-glass-surface, #ffffff88),transparent); }
.buy-button[data-qe-sale] { transition: transform 0.16s, filter 0.16s; }
.buy-button[data-qe-sale]::before { width: 45%; z-index: 3; }
.buy-button[data-qe-sale]:not(:disabled):active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .product-card[data-qe-sale]:hover { transform: translateY(-2px); border-color: var(--h5-accent-border, #ead1a1); box-shadow: var(--h5-shadow-card, 0 6px 18px #6a320d12); }
}
@media (prefers-reduced-motion: no-preference) {
  .product-card[data-qe-sale]:nth-child(-n+8) { animation: sale-card-enter-572c5cfb .44s cubic-bezier(.16,1,.3,1) var(--enter-delay) backwards; }
  .product-card--active:nth-child(-n+6) .product-photo img[data-qe-sale] { animation: 9s ease-in-out 0s infinite alternate none running sale-photo-drift-572c5cfb; }
  .product-card--active:nth-child(-n+6) .countdown-strip[data-qe-sale]::before { animation: 2.4s ease-in-out 0s infinite normal none running sale-live-pulse-572c5cfb; }
  .product-card--active:nth-child(-n+6) .flame-tail[data-qe-sale] { animation: 0.9s ease-in-out 0s infinite normal none running sale-flame-tail-burn-572c5cfb; }
  .product-card--active:nth-child(-n+6) .flame-tail-inner[data-qe-sale] { animation: 0.64s ease-in-out 0s infinite reverse none running sale-flame-tail-burn-572c5cfb; }
  .product-card--active:nth-child(-n+6) .coupon svg[data-qe-sale] { animation: 3.6s ease-in-out 0s infinite normal none running sale-bolt-pop-572c5cfb; }
  .product-card--active:nth-child(-n+6) .buy-button[data-qe-sale]::before { animation: 4.8s ease-in-out 0s infinite normal none running sale-button-glint-572c5cfb; }
  .product-card--active:nth-child(-n+6) .buy-label[data-qe-sale] { animation: 4s ease-in-out 0s infinite normal none running sale-buy-bounce-572c5cfb; }
}
@keyframes sale-card-enter-572c5cfb { 
  0% { opacity: 0; transform: translateY(10px) scale(0.985); }
  100% { opacity: 1; transform: none; }
}
@keyframes sale-photo-drift-572c5cfb { 
  0% { transform: scale(1); }
  100% { transform: scale(1.045); }
}
@keyframes sale-live-pulse-572c5cfb { 
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
@keyframes sale-flame-tail-burn-572c5cfb { 
  0%, 100% { transform: scaleX(0.92) skewY(-2deg); }
  35% { transform: scaleX(1.08) skewY(2deg); }
  70% { transform: scaleX(0.96) skewY(-1deg); }
}
@keyframes sale-bolt-pop-572c5cfb { 
  0%, 70%, 100% { transform: none; }
  80% { transform: rotate(-9deg) scale(1.12); }
  90% { transform: rotate(5deg) scale(1.05); }
}
@keyframes sale-button-glint-572c5cfb { 
  0%, 60% { opacity: 0; transform: translate(-130%) skew(-18deg); }
  68% { opacity: 0.7; }
  85%, 100% { opacity: 0; transform: translate(320%) skew(-18deg); }
}
@keyframes sale-buy-bounce-572c5cfb { 
  0%, 74%, 100% { transform: none; }
  84% { transform: translateY(-1px) rotate(-3deg) scale(1.08); }
  92% { transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .product-card[data-qe-sale], .product-card [data-qe-sale], .product-card[data-qe-sale]::before, .product-card[data-qe-sale]::after, .product-card [data-qe-sale]::before, .product-card [data-qe-sale]::after { animation: auto ease 0s 1 normal none running none !important; transition: none !important; }
  .product-card[data-qe-sale]:hover, .buy-button[data-qe-sale]:not(:disabled):active { transform: none; }
}

/* 参考站首页秒杀没有标题栏：原生 v2 组件也隐藏标题 */
.sale-heading { display: none !important; }
