/* ============================================================
   特惠商城 · PC 端样式（.mall-page 独立作用域，Vue 3 驱动）
   对应模板：template/Quyou/pc/lists_mall.htm
   ============================================================ */
.mall-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 14px 40px;
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f3f4f6;
  color: #222;
}
.mall-page a { text-decoration: none; color: inherit; }
.mall-page img { display: block; }

/* 标题 */
.mall-hero { padding: 14px 0 12px; border-bottom: 1px solid #eaeaea; margin-bottom: 14px; }
.mall-hero__title { font-size: 20px; font-weight: 800; color: #111; display: flex; align-items: center; gap: 8px; }
.mall-hero__title::before { content: ''; display: inline-block; width: 4px; height: 20px; background: #ff6b35; border-radius: 2px; }
.mall-hero__sub { font-size: 12px; color: #999; margin-top: 4px; padding-left: 12px; }

/* 秒杀区 */
.mall-seckill-wrap {
  display: flex; margin-bottom: 20px;
  border: 2px solid #e85d2e; border-radius: 10px; overflow: hidden; background: #fff;
}
.mall-seckill__left {
  flex-shrink: 0; width: 200px;
  background: linear-gradient(180deg, #ff6b35, #ef4444);
  padding: 18px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center;
}
.mall-seckill__left-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.mall-seckill__left-sub { font-size: 11px; opacity: 0.85; margin-bottom: 12px; }
.mall-seckill__countdown { display: flex; align-items: center; gap: 4px; }
.mall-seckill__num { background: rgba(0,0,0,0.25); color: #fff; padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 20px; font-weight: 800; min-width: 28px; text-align: center; }
.mall-seckill__colon { font-size: 18px; font-weight: 800; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.mall-seckill__left-label { font-size: 10px; opacity: 0.7; margin-top: 10px; }
.mall-seckill__right { flex: 1; padding: 12px; overflow: hidden; }
.mall-seckill__scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.mall-seckill__scroll::-webkit-scrollbar { height: 4px; }
.mall-seckill__scroll::-webkit-scrollbar-thumb { background: #f0d0c0; border-radius: 2px; }

.mall-seckill-card {
  flex-shrink: 0; width: 170px; border-radius: 8px; overflow: hidden;
  border: 1px solid #dcdcdc; background: #fff; transition: all 0.3s; cursor: pointer;
  display: block; text-decoration: none; color: inherit;
}
.mall-seckill-card:hover { box-shadow: 0 4px 14px rgba(255,107,53,0.15); transform: translateY(-2px); }
.mall-seckill-card__cover { position: relative; }
.mall-seckill-card__img { width: 100%; height: 110px; object-fit: cover; }
.mall-seckill-card__badge { position: absolute; top: 0; left: 0; background: linear-gradient(135deg, #ef4444, #ff6b35); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 0 0 8px 0; }
.mall-seckill-card__percent { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.55); color: #ffd700; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.mall-seckill-card__body { padding: 8px 10px; }
.mall-seckill-card__name { font-size: 12px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mall-seckill-card__price { font-size: 18px; font-weight: 800; color: #ef4444; margin-top: 4px; }
.mall-seckill-card__orig { font-size: 10px; color: #bbb; text-decoration: line-through; margin-left: 2px; }
.mall-seckill-card__bar { height: 3px; background: #f3f4f6; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.mall-seckill-card__bar-fill { height: 100%; background: linear-gradient(90deg, #ff6b35, #ef4444); width: calc(var(--w, 64%) * 0.35); max-width: calc(100% - 4px); transition: width 0.4s ease; }
.mall-seckill-card:hover .mall-seckill-card__bar-fill { width: var(--w, 64%); }
.mall-seckill-card__stock { font-size: 10px; color: #999; margin-top: 2px; }
@media (max-width: 768px) { .mall-seckill-wrap { flex-direction: column; } .mall-seckill__left { width: 100%; } }

/* 优惠券 */
.mall-coupons { display: flex; gap: 14px; overflow-x: auto; margin-bottom: 20px; padding: 4px 2px; }
.mall-coupons::-webkit-scrollbar { display: none; }
.mall-coupon {
  flex-shrink: 0; width: max-content; max-width: 300px; min-height: 90px; background: #fff; border-radius: 10px;
  display: flex; overflow: hidden; cursor: pointer; position: relative;
  border: none; filter: drop-shadow(0 0 0 1px #d0d0d0) drop-shadow(0 2px 6px rgba(0,0,0,0.05));
  transition: transform 0.2s, filter 0.2s;
}
.mall-coupon:hover { transform: translateY(-2px); filter: drop-shadow(0 0 0 1px #d0d0d0) drop-shadow(0 6px 16px rgba(255,107,53,0.12)); }
.mall-coupon::before, .mall-coupon::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: #f3f4f6; }
.mall-coupon::before { left: -8px; }
.mall-coupon::after { right: -8px; }
.mall-coupon__left { width: auto; min-width: 92px; padding: 0 12px; background: linear-gradient(135deg, #ff6b35, #ef4444); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mall-coupon__amount { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.mall-coupon__unit { font-size: 12px; opacity: 0.9; padding: 1px 6px; border: 1px solid rgba(255,255,255,0.45); border-radius: 8px; }
.mall-coupon__right { flex: 1; min-width: 0; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.mall-coupon__cond { font-size: 13px; color: #333; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mall-coupon__valid { font-size: 11px; color: #888; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mall-coupon__btn { font-size: 12px; color: #ff6b35; font-weight: 700; align-self: flex-start; padding: 3px 10px; border: 1px solid #ff6b35; border-radius: 12px; margin-top: 2px; }
.mall-coupon--taken .mall-coupon__left { background: linear-gradient(135deg, #d4d4d4, #b8b8b8); }
.mall-coupon--taken .mall-coupon__btn { color: #999; border-color: #d0d0d0; background: #f5f5f5; }
.mall-coupons__empty { width: 100%; text-align: center; color: #999; font-size: 13px; padding: 18px 0; background: #fff; border: 1px dashed #dcdcdc; border-radius: 8px; }

/* Tab */
.mall-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.mall-tab { padding: 10px 18px; border-radius: 18px; font-size: 13px; color: #666; cursor: pointer; background: #fff; border: 1px solid #e5e7eb; transition: all 0.2s; }
.mall-tab--active { background: #ff6b35; color: #fff; border-color: #ff6b35; font-weight: 600; }

/* 产品区 */
.mall-main { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.mall-ads { flex-shrink: 0; width: 240px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.mall-ad { border-radius: 8px; overflow: hidden; cursor: pointer; height: 100%; display: flex; min-height: 0; border: 1px solid #dcdcdc; }
.mall-ad img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.mall-ad:hover img { transform: scale(1.04); }
.mall-ad--top { flex: 3; }
.mall-ad--bottom { flex: 2; }

.mall-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.mall-item {
  display: flex; padding: 14px 12px; gap: 14px;
  border: 1px solid #dcdcdc; border-radius: 8px; background: #fff;
  transition: all 0.3s; cursor: pointer; position: relative; overflow: hidden;
}
.mall-item:hover { box-shadow: 0 4px 14px rgba(255,107,53,0.1); transform: translateY(-1px); }
.mall-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #ff6b35; transform: scaleY(0); transform-origin: top; transition: transform 0.3s ease; border-radius: 8px 0 0 8px; }
.mall-item:hover::before { transform: scaleY(1); }

/* 轮播图 */
.mall-item__img-wrap { position: relative; flex-shrink: 0; width: 200px; height: 150px; border-radius: 6px; overflow: hidden; }
.mall-item__slides { position: relative; width: 100%; height: 100%; }
.mall-item__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.mall-item__slide.is-active { opacity: 1; }
.mall-item__slide img { width: 100%; height: 100%; object-fit: cover; }
.mall-item__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.35); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; opacity: 0; transition: opacity 0.2s; z-index: 2; }
.mall-item__img-wrap:hover .mall-item__nav { opacity: 1; }
.mall-item__nav--prev { left: 4px; }
.mall-item__nav--next { right: 4px; }
.mall-item__dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; z-index: 2; }
.mall-item__dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.2s; }
.mall-item__dot.is-active { background: #fff; width: 14px; border-radius: 3px; }

.mall-item__crown { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.55); color: #ffd700; font-size: 14px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 3; }

.mall-item__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.mall-item__title { font-size: 15px; font-weight: 700; color: #222; line-height: 1.4; transition: color 0.2s; }
.mall-item:hover .mall-item__title { color: #ff6b35; }
.mall-item__highlight { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(90deg, #fff5f0, #fff0e6); color: #ff6b35; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 4px; margin-top: 4px; align-self: flex-start; }
.mall-item__tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.mall-item__tag { font-size: 10px; padding: 2px 7px; border-radius: 3px; font-weight: 600; }
.mall-item__tag--green { background: #ecfdf5; color: #059669; }
.mall-item__tag--blue { background: #eff6ff; color: #2563eb; }
.mall-item__tag--orange { background: #fff7ed; color: #ea580c; }
.mall-item__tag--purple { background: #f5f3ff; color: #7c3aed; }
.mall-item__tag--red { background: #fef2f2; color: #dc2626; }
.mall-item__rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.mall-item__stars { font-size: 12px; color: #ff9f00; font-weight: 600; }
.mall-item__reviews { font-size: 11px; color: #999; }

.mall-item__aside { flex-shrink: 0; width: 130px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.mall-item__price { font-size: 24px; font-weight: 800; color: #ef4444; }
.mall-item__price-unit { font-size: 11px; font-weight: 400; }
.mall-item__orig { font-size: 11px; color: #bbb; text-decoration: line-through; }
.mall-item__sold { font-size: 10px; color: #999; margin-top: 2px; }

/* 脉冲按钮 */
.mall-item__btn {
  background: linear-gradient(135deg, #ff6b35, #ff8c42); color: #fff;
  padding: 7px 20px; border-radius: 20px; font-size: 12px; font-weight: 600;
  animation: pulseGlow 2s ease-out infinite;
  transition: transform 0.2s;
}
.mall-item:hover .mall-item__btn { transform: scale(1.05); }
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0   rgba(255,107,53,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(255,107,53,0); }
  100% { box-shadow: 0 0 0 0   rgba(255,107,53,0); }
}

@media (max-width: 900px) { .mall-main { flex-direction: column; } .mall-ads { width: 100%; flex-direction: row; } .mall-ad { flex: 1; height: 110px; } .mall-item__img-wrap { width: 140px; height: 110px; } }
@media (max-width: 600px) { .mall-ads { flex-direction: column; } .mall-item { flex-direction: column; } .mall-item__img-wrap { width: 100%; height: 160px; } .mall-item__aside { width: 100%; flex-direction: row; align-items: center; } }

/* 爆款 */
.mall-rank { background: #fff; border: 1px solid #dcdcdc; border-radius: 8px; padding: 14px; margin-bottom: 20px; overflow: hidden; }
.mall-rank__title { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 10px; padding-left: 10px; border-left: 3px solid #ef4444; }
.mall-rank__scroll { overflow: hidden; }
.mall-rank__track { display: flex; gap: 10px; animation: scrollLeft 30s linear infinite; width: max-content; }
.mall-rank__track:hover { animation-play-state: paused; }
@keyframes scrollLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mall-rank-card { display: block; width: 155px; flex-shrink: 0; background: #fff; border: 1px solid #dcdcdc; border-radius: 8px; overflow: hidden; cursor: pointer; transition: box-shadow 0.2s; color: inherit; text-decoration: none; }
.mall-rank-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.mall-rank-card__img { width: 100%; height: 96px; object-fit: cover; }
.mall-rank-card__body { padding: 8px; }
.mall-rank-card__name { font-size: 12px; font-weight: 600; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.mall-rank-card__price { font-size: 16px; font-weight: 800; color: #ef4444; margin-top: 4px; }
.mall-rank-card__sold { font-size: 10px; color: #bbb; margin-top: 2px; }

/* 尾单 */
.mall-tail { background: #fff; border: 1px solid #dcdcdc; border-radius: 8px; padding: 14px; margin-bottom: 20px; }
.mall-tail__title { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 10px; padding-left: 10px; border-left: 3px solid #f59e0b; display: flex; align-items: center; gap: 6px; }
.mall-tail__title::after { content: '\26A1'; animation: blink 1.5s infinite; }
.mall-tail__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) { .mall-tail__grid { grid-template-columns: repeat(2, 1fr); } }
.mall-tail-card { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #dcdcdc; position: relative; transition: all 0.3s; color: inherit; text-decoration: none; cursor: pointer; }
.mall-tail-card:hover { box-shadow: 0 4px 14px rgba(245,158,11,0.2); border-color: #fcd34d; }
.mall-tail-card__img { width: 100%; height: 100px; object-fit: cover; }
.mall-tail-card__badge { position: absolute; top: 0; left: 0; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 0 0 6px 0; }
.mall-tail-card__body { padding: 8px 10px; }
.mall-tail-card__name { font-size: 12px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mall-tail-card__price-row { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.mall-tail-card__price { font-size: 17px; font-weight: 800; color: #ef4444; }
.mall-tail-card__orig { font-size: 10px; color: #bbb; text-decoration: line-through; }
.mall-tail-card__bar { height: 3px; background: #f3f4f6; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.mall-tail-card__bar-fill { height: 100%; background: #f59e0b; width: calc(var(--w, 88%) * 0.35); max-width: calc(100% - 4px); transition: width 0.4s ease; }
.mall-tail-card:hover .mall-tail-card__bar-fill { width: var(--w, 88%); }
.mall-tail-card__deadline { font-size: 10px; color: #ef4444; font-weight: 600; margin-top: 3px; }

/* 服务 */
.mall-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 768px) { .mall-services { grid-template-columns: repeat(2, 1fr); } }
.mall-service { background: #fff; border: 1px solid #dcdcdc; border-radius: 8px; padding: 14px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s; }
.mall-service:hover { border-color: #ff6b35; background: #fffaf5; }
.mall-service__icon { font-size: 24px; }
.mall-service__name { font-size: 13px; font-weight: 700; color: #333; }
.mall-service__desc { font-size: 10px; color: #999; margin-top: 1px; }

/* 信任条 */
.mall-trust { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; background: #fff; border: 1px solid #dcdcdc; border-radius: 8px; padding: 12px; font-size: 12px; color: #666; font-weight: 600; }
