/* 首页补全模块：快捷入口 + 限时秒杀（原编译包缺失对应 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);
}
