/* ============================== 积分商城 v2 ============================== */

.mall-main *,
.mall-main *::before,
.mall-main *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.mall-main { min-height: 100vh; padding-top: 0; }

/* ── Hero Banner 轮播 ── */
.mall-banner {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
  border: 1px solid var(--cc-border);
}
.mall-banner-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.mall-banner-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}
.mall-banner-slide img {
  width: 100%;
  aspect-ratio: 5/2;
  object-fit: cover;
  display: block;
}
.mall-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
}
.mall-banner-overlay h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.mall-banner-overlay p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.mall-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #333;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.mall-banner:hover .mall-banner-arrow { opacity: 1; }
.mall-banner-arrow:hover { background: #fff; }
.mall-banner-prev { left: 10px; }
.mall-banner-next { right: 10px; }
.mall-banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.mall-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  padding: 0;
}
.mall-banner-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}
@media (max-width: 640px) {
  .mall-banner { border-radius: 8px; margin-bottom: 10px; }
  .mall-banner-overlay { padding: 12px 14px 10px; }
  .mall-banner-overlay h3 { font-size: 14px; }
  .mall-banner-overlay p { font-size: 11px; }
  .mall-banner-arrow { width: 26px; height: 26px; font-size: 15px; }
}
html[data-theme-mode="dark"] .mall-banner { border-color: #1e293b; }
html[data-theme-mode="dark"] .mall-banner-arrow { background: rgba(30,41,59,0.85); color: #e5e7eb; }
html[data-theme-mode="dark"] .mall-banner-arrow:hover { background: #334155; }

/* ── 顶部 Toolbar ── */
.mall-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 14px;
}
.mall-pts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--cc-blue), var(--cc-blue-600));
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(var(--cc-blue-rgb, 37,99,235), 0.18);
}
.mall-pts i { font-size: 18px; }
.mall-pts small { font-weight: 500; font-size: 12px; opacity: 0.9; }
.mall-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 120px;
}
.mall-search i.search-icon {
  position: absolute;
  left: 14px;
  font-size: 18px;
  color: var(--cc-muted);
  pointer-events: none;
}
.mall-search input {
  width: 100%;
  min-height: 42px;
  padding: 9px 38px 9px 42px;
  border: 2px solid rgba(var(--cc-blue-rgb, 37,99,235), 0.5);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  background: var(--cc-white);
  color: var(--cc-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.mall-search input:focus {
  outline: none;
  border-color: var(--cc-blue);
  box-shadow: 0 0 0 4px rgba(var(--cc-blue-rgb, 37,99,235), 0.12);
}
.mall-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--cc-muted);
  cursor: pointer;
  padding: 3px;
}
.mall-toolbar-links {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mall-toolbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--cc-border);
  border-radius: 50%;
  color: var(--cc-muted);
  text-decoration: none;
  background: var(--cc-white);
  font-size: 18px;
  transition: all 0.2s;
}
.mall-toolbar-link:hover {
  color: var(--cc-blue);
  border-color: var(--cc-blue);
  background: rgba(var(--cc-blue-rgb), 0.06);
}

/* ── 分类 Tab + 排序 合并条 ── */
.mall-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mall-filter-bar::-webkit-scrollbar { display: none; }

.mall-tabs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mall-tab {
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--cc-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.mall-tab:hover { color: var(--cc-text); background: rgba(var(--cc-blue-rgb), 0.05); }
.mall-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--cc-blue), var(--cc-blue-600));
  box-shadow: 0 4px 12px rgba(var(--cc-blue-rgb), 0.22);
  font-weight: 600;
}

.mall-filter-sep {
  width: 1px;
  height: 22px;
  background: var(--cc-border);
  flex-shrink: 0;
  margin: 0 4px;
}

.mall-sorts {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.mall-sort-btn {
  padding: 7px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--cc-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.mall-sort-btn:hover { color: var(--cc-text); }
.mall-sort-btn.active { color: var(--cc-blue); font-weight: 700; background: rgba(var(--cc-blue-rgb), 0.1); }

.mall-filter-spacer { flex: 1; }
.mall-result-count { font-size: 13px; color: var(--cc-muted); white-space: nowrap; flex-shrink: 0; }

/* ── 人气排行横向滚动 ── */
.mall-ranking {
  margin-bottom: 12px;
  background: var(--cc-white);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--cc-border);
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.mall-ranking-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mall-ranking-hd h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--cc-text);
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}
.mall-ranking-hd h3 i { font-size: 16px; color: #f59e0b; }
.mall-ranking-hd a {
  font-size: 12px;
  color: var(--cc-muted);
  text-decoration: none;
}
.mall-ranking-hd a:hover { color: var(--cc-blue); }
.mall-ranking-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.mall-ranking-scroll::-webkit-scrollbar { height: 3px; }
.mall-ranking-scroll::-webkit-scrollbar-thumb { background: var(--cc-border); border-radius: 3px; }
.mall-rank-card {
  flex-shrink: 0;
  width: 96px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s;
}
.mall-rank-card:hover { transform: translateY(-2px); }
.mall-rank-card-img {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
  margin-bottom: 6px;
}
.mall-rank-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mall-rank-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.mall-rank-badge.r1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.mall-rank-badge.r2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.mall-rank-badge.r3 { background: linear-gradient(135deg, #fdba74, #f97316); }
.mall-rank-badge.rn { background: #e2e8f0; color: #64748b; }
.mall-rank-card-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--cc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mall-rank-card-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--cc-blue);
  margin-top: 1px;
}

/* ── 商品网格 ── */
.mall-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 8px;
}

/* ── 商品卡片（紧凑版） ── */
.mall-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: pointer;
}
.mall-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
  border-color: rgba(var(--cc-blue-rgb), 0.2);
}
.mall-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #ff7a00, #ff4d4f, #3b82f6);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}
.mall-card:hover::before { opacity: 1; }
.mall-card-media { position: relative; }

.mall-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  overflow: hidden;
  position: relative;
}
.mall-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.02) 60%, rgba(15,23,42,0.1) 100%);
  pointer-events: none;
}
.mall-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.mall-card:hover .mall-card-img img { transform: scale(1.05); }

.mall-card-img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--cc-muted);
}
.mall-card-img-ph i { font-size: 22px; opacity: 0.35; }
.mall-card-img-ph span { font-size: 10px; margin-top: 3px; }

/* hover 浮层 */
.mall-card-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.mall-card:hover .mall-card-hover { opacity: 1; }
.mall-card-hover-btn {
  padding: 5px 14px;
  border-radius: 50px;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--cc-blue), var(--cc-blue-600));
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.15s;
  pointer-events: auto;
}
.mall-card-hover-btn:hover { transform: scale(1.05); }
.mall-card-hover-btn.btn-free { background: linear-gradient(135deg, #10b981, #059669); }
.mall-card-hover-btn.btn-owned { background: #6b7280; cursor: default; }
.mall-card-hover-btn.btn-disabled { background: #6b7280; cursor: not-allowed; }

/* 标签 */
.mall-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 12px rgba(15,23,42,0.12);
  text-transform: uppercase;
}
.mall-tag-hot { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; }
.mall-tag-new { background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff; }
.mall-tag-limited { background: linear-gradient(135deg, #f59e0b, #fb7185); color: #fff; }
.mall-tag-recommend { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; }

.mall-stock-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}
.mall-stock-in { background: rgba(255,255,255,0.92); color: #059669; }
.mall-stock-out { background: rgba(255,255,255,0.92); color: #dc2626; }
.mall-stock-low { background: rgba(255,255,255,0.92); color: #d97706; }

.mall-card-body {
  padding: 7px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mall-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mall-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--cc-muted);
}
.mall-card-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #f59e0b;
  font-size: 13px;
}
.mall-card-rating-score {
  font-weight: 600;
  color: #111827;
}
.mall-card-rating-count {
  color: #94a3b8;
}
.mall-card-price-row {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.mall-card-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-blue);
}
.mall-card-price i {
  font-size: 15px;
  color: #f59e0b;
}
.mall-card-price-free { color: #10b981; }
.mall-card-price-free i { color: #10b981; }
.mall-card-original {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}
.mall-card-discount {
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  padding: 2px 4px;
  border-radius: 4px;
}
.mall-card-social-proof {
  font-size: 12px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.mall-card-social-proof::before {
  content: '\ea4f';
  font-family: boxicons !important;
  color: #f59e0b;
}
.mall-card-cta {
  display: flex;
  width: 100%;
  margin-top: 1px;
  justify-content: center;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  box-shadow: 0 6px 16px rgba(37,99,235,0.16);
}
.mall-card-cta.mall-card-hover-btn {
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #ff7a00, #ff4d4f);
  box-shadow: 0 8px 18px rgba(255,92,0,0.22);
}
.mall-card-cta.mall-card-hover-btn:hover {
  transform: translateY(-1px);
}
.mall-card-cta.mall-card-hover-btn.btn-free {
  background: linear-gradient(135deg, #10b981, #14b8a6);
  box-shadow: 0 8px 18px rgba(16,185,129,0.22);
}
.mall-card-cta.mall-card-hover-btn.btn-owned {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
}
.mall-card-cta.mall-card-hover-btn.btn-disabled {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
}
.mall-card-cta.btn-free {
  box-shadow: 0 6px 16px rgba(16,185,129,0.18);
}
.mall-card-cta.btn-disabled,
.mall-card-cta.btn-owned {
  box-shadow: none;
}
.mall-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 2px;
  border-top: 1px dashed rgba(148,163,184,0.2);
}
.mall-card-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}
.mall-card-footer-item i {
  font-size: 14px;
}
.mall-card-footer-item:first-child i { color: #fb7185; }
.mall-card-footer-item:last-child i { color: #60a5fa; }

/* ── 优惠券卡片 ── */
.mall-coupon-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  background:
    radial-gradient(circle at left center, transparent 0 10px, rgba(255,255,255,0.9) 10px 11px, transparent 11px) left center / 24px 100% no-repeat,
    radial-gradient(circle at right center, transparent 0 10px, rgba(255,255,255,0.9) 10px 11px, transparent 11px) right center / 24px 100% no-repeat,
    linear-gradient(135deg, #fff7ed, #ffedd5 45%, #fed7aa);
}
.mall-coupon-face::before {
  content: 'COUPON';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(154,52,18,0.45);
  letter-spacing: 0.8px;
}
.mall-coupon-value {
  font-size: 22px;
  font-weight: 800;
  color: #ea580c;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.mall-coupon-label {
  font-size: 10px;
  color: #9a3412;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}

/* ── 服务器卡片 ── */
.mall-card-server {
  background: linear-gradient(135deg, #111827, #1f2937);
  border: 1px solid #374151;
}
.mall-card-server:hover { border-color: #4b5563; }
.mall-card-server .mall-card-img {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mall-card-server .mall-card-name { color: #f9fafb; }
.mall-card-server .mall-card-price { color: #4ade80; }
.mall-card-server .mall-card-meta { color: #6b7280; }
.mall-card-server .mall-card-hover { background: rgba(0,0,0,0.5); }
.mall-card-server .mall-card-hover-btn { background: linear-gradient(135deg, #16a34a, #15803d); }

.mall-server-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.mall-server-icon.vhost { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
.mall-server-icon.ptero { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }

.mall-server-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.mall-spec-tag {
  padding: 1px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  font-size: 10px;
  color: #9ca3af;
}
.mall-spec-tag b { color: #e2e8f0; font-weight: 600; }

.mall-zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(37,99,235,0.2);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.35);
}
.mall-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 600;
  z-index: 1;
}
.mall-type-badge.vhost { background: rgba(52,211,153,0.12); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.25); }
.mall-type-badge.ptero { background: rgba(167,139,250,0.15); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.3); }

/* ── 区域筛选 ── */
.mall-zone-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 50px;
  width: fit-content;
  max-width: 100%;
}
.mall-zone-btn {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--cc-muted);
  transition: all 0.2s;
}
.mall-zone-btn:hover { background: rgba(var(--cc-blue-rgb), 0.07); color: var(--cc-blue); }
.mall-zone-btn.active {
  background: linear-gradient(135deg, var(--cc-blue), var(--cc-blue-600));
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--cc-blue-rgb), 0.25);
}

/* ── 骨架屏 ── */
.mall-skeleton-card {
  background: var(--cc-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cc-border);
}
.mall-skeleton-card::before {
  content: '';
  display: block;
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.mall-skeleton-card::after {
  content: '';
  display: block;
  height: 36px;
  margin: 6px 8px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite 0.3s;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── 空状态 ── */
.mall-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--cc-muted);
  grid-column: 1 / -1;
}
.mall-empty i { font-size: 48px; opacity: 0.3; margin-bottom: 10px; display: block; }
.mall-empty p { font-size: 14px; margin: 0; }

/* ── 加载更多 ── */
.mall-load-more { text-align: center; padding: 16px 0; }
.mall-load-more-btn {
  padding: 8px 28px;
  border: 1px solid var(--cc-border);
  border-radius: 50px;
  background: var(--cc-white);
  color: var(--cc-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.mall-load-more-btn:hover { border-color: var(--cc-blue); color: var(--cc-blue); }

/* ── 弹窗 ── */
.mall-modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.mall-modal-mask.show { display: flex; }
.mall-modal {
  width: 92%; max-width: 420px;
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  animation: mallModalIn 0.25s ease;
}
@keyframes mallModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.mall-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cc-border);
}
.mall-modal-header h4 { margin: 0; font-size: 16px; font-weight: 600; color: var(--cc-text); display: flex; align-items: center; gap: 6px; }
.mall-modal-close { background: none; border: none; font-size: 20px; color: var(--cc-muted); cursor: pointer; padding: 4px; border-radius: 6px; transition: background 0.2s; }
.mall-modal-close:hover { background: rgba(var(--cc-blue-rgb), 0.08); }
.mall-modal-body { padding: 16px 20px; color: var(--cc-text); line-height: 1.6; font-size: 14px; }
.mall-modal-footer { padding: 12px 20px; border-top: 1px solid var(--cc-border); display: flex; gap: 8px; justify-content: flex-end; }

.mall-btn-primary {
  padding: 8px 18px; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, var(--cc-blue), var(--cc-blue-600));
  color: #fff;
  box-shadow: 0 4px 10px rgba(var(--cc-blue-rgb), 0.2);
  transition: all 0.2s;
}
.mall-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(var(--cc-blue-rgb), 0.3); }
.mall-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.mall-btn-ghost {
  padding: 8px 18px; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: #f1f5f9; color: var(--cc-text);
  transition: all 0.2s;
}
.mall-btn-ghost:hover { background: #e2e8f0; }

.mall-form-group { margin-bottom: 12px; }
.mall-form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--cc-text); margin-bottom: 5px; }
.mall-form-group input {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--cc-border); border-radius: 8px;
  font-size: 13px; background: var(--cc-white); color: var(--cc-text);
  box-sizing: border-box;
}
.mall-form-group input:focus { outline: none; border-color: var(--cc-blue); box-shadow: 0 0 0 3px rgba(var(--cc-blue-rgb), 0.1); }

/* ── 图片预览 ── */
.mall-preview-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.mall-preview-mask img { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

/* ── 响应式 ── */
@media (max-width: 1200px) {
  .mall-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}
@media (max-width: 640px) {
  .mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mall-toolbar { gap: 8px; }
  .mall-pts { padding: 6px 12px; font-size: 13px; }
  .mall-pts i { font-size: 15px; }
  .mall-search input { min-height: 38px; padding: 8px 34px 8px 38px; font-size: 13px; }
  .mall-search i.search-icon { left: 12px; font-size: 16px; }
  .mall-toolbar-link { width: 32px; height: 32px; font-size: 14px; }
  .mall-card-body { padding: 6px; gap: 4px; }
  .mall-tag, .mall-stock-tag { font-size: 10px; }
  .mall-card-name { font-size: 12px; }
  .mall-card-rating { gap: 3px; font-size: 10px; }
  .mall-card-stars { font-size: 11px; }
  .mall-card-price { font-size: 12px; }
  .mall-card-social-proof { font-size: 11px; }
  .mall-card-cta { padding: 7px 8px; font-size: 12px; }
  .mall-card-footer-item { font-size: 10px; }
  .mall-tab { padding: 5px 12px; font-size: 12px; }
  .mall-sort-btn { padding: 5px 9px; font-size: 11px; }
  .mall-rank-card { width: 80px; }
  .mall-rank-card-img { width: 80px; height: 80px; }
  .mall-rank-card-name { font-size: 11px; }
  .mall-rank-card-price { font-size: 11px; }
}
@media (max-width: 400px) {
  .mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .mall-toolbar-links { display: none; }
}

/* ── 分区标题 ── */
.mall-section { margin-bottom: 16px; }
.mall-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--cc-border);
}
.mall-section-hd h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--cc-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mall-section-hd h3 .sec-icon {
  font-size: 18px;
}
.mall-section-hd .sec-more {
  font-size: 12px;
  color: var(--cc-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s;
}
.mall-section-hd .sec-more:hover { color: var(--cc-blue); }
.mall-section-hd .sec-count {
  font-size: 11px;
  color: var(--cc-muted);
  font-weight: 400;
  margin-left: 4px;
}

/* 分区骨架屏 */
.mall-section-skeleton { margin-bottom: 16px; }
.mall-section-hd-sk {
  height: 16px;
  width: 120px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ── 暗色模式 ── */
html[data-theme-mode="dark"] .mall-card { background: linear-gradient(180deg, #111827 0%, #0f172a 100%); border-color: #1e293b; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
html[data-theme-mode="dark"] .mall-card:hover { border-color: rgba(var(--cc-blue-rgb), 0.3); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
html[data-theme-mode="dark"] .mall-card-img { background: linear-gradient(135deg, #1e293b, #0f172a); }
html[data-theme-mode="dark"] .mall-card-rating-score { color: #f8fafc; }
html[data-theme-mode="dark"] .mall-card-rating-count { color: #64748b; }
html[data-theme-mode="dark"] .mall-card-social-proof { color: #94a3b8; }
html[data-theme-mode="dark"] .mall-card-footer { border-top-color: rgba(71,85,105,0.5); }
html[data-theme-mode="dark"] .mall-card-footer-item { color: #64748b; }
html[data-theme-mode="dark"] .mall-stock-in,
html[data-theme-mode="dark"] .mall-stock-out,
html[data-theme-mode="dark"] .mall-stock-low { background: rgba(15,23,42,0.84); }
html[data-theme-mode="dark"] .mall-coupon-face {
  background:
    radial-gradient(circle at left center, transparent 0 10px, rgba(15,23,42,0.92) 10px 11px, transparent 11px) left center / 24px 100% no-repeat,
    radial-gradient(circle at right center, transparent 0 10px, rgba(15,23,42,0.92) 10px 11px, transparent 11px) right center / 24px 100% no-repeat,
    linear-gradient(135deg, #312e81, #4c1d95 45%, #7c3aed);
}
html[data-theme-mode="dark"] .mall-coupon-value { color: #fef3c7; text-shadow: none; }
html[data-theme-mode="dark"] .mall-coupon-label { background: rgba(255,255,255,0.12); color: #e9d5ff; }
html[data-theme-mode="dark"] .mall-ranking { background: #111827; border-color: #1e293b; }
html[data-theme-mode="dark"] .mall-rank-card-img { background: #1e293b; }
html[data-theme-mode="dark"] .mall-search input { background: #111827; border-color: rgba(var(--cc-blue-rgb, 37,99,235), 0.55); color: #e5e7eb; }
html[data-theme-mode="dark"] .mall-toolbar-link { background: #111827; border-color: #1e293b; color: #94a3b8; }
html[data-theme-mode="dark"] .mall-zone-filter { background: #111827; border-color: #1e293b; }
html[data-theme-mode="dark"] .mall-zone-btn { color: #94a3b8; }
html[data-theme-mode="dark"] .mall-btn-ghost { background: #1e293b; color: #e5e7eb; }
html[data-theme-mode="dark"] .mall-btn-ghost:hover { background: #334155; }
html[data-theme-mode="dark"] .mall-modal { background: #111827; border-color: #1e293b; }
html[data-theme-mode="dark"] .mall-modal-header { border-color: #1e293b; }
html[data-theme-mode="dark"] .mall-modal-footer { border-color: #1e293b; }
html[data-theme-mode="dark"] .mall-form-group input { background: #0f172a; border-color: #1e293b; color: #e5e7eb; }
html[data-theme-mode="dark"] .mall-skeleton-card { background: #111827; border-color: #1e293b; }
html[data-theme-mode="dark"] .mall-skeleton-card::before,
html[data-theme-mode="dark"] .mall-skeleton-card::after { background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%); background-size: 200% 100%; }
html[data-theme-mode="dark"] .mall-load-more-btn { background: #111827; border-color: #1e293b; color: #94a3b8; }
html[data-theme-mode="dark"] .mall-coupon-face { background: linear-gradient(135deg, #451a03, #78350f); }
html[data-theme-mode="dark"] .mall-coupon-value { color: #fdba74; }
html[data-theme-mode="dark"] .mall-coupon-label { color: #fb923c; }
html[data-theme-mode="dark"] .mall-filter-sep { background: #1e293b; }
html[data-theme-mode="dark"] .mall-tab { color: #94a3b8; }
html[data-theme-mode="dark"] .mall-tab:hover { color: #e5e7eb; background: rgba(var(--cc-blue-rgb), 0.1); }
html[data-theme-mode="dark"] .mall-sort-btn { color: #94a3b8; }
html[data-theme-mode="dark"] .mall-sort-btn:hover { color: #e5e7eb; }
html[data-theme-mode="dark"] .mall-sort-btn.active { color: var(--cc-blue); }
html[data-theme-mode="dark"] .mall-section-hd { border-color: #1e293b; }
html[data-theme-mode="dark"] .mall-section-hd-sk { background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%); background-size: 200% 100%; }
