/* 冥鱼沧商城 · 首页电商布局（日用百货电商布局） */
.mall-main { padding: 12px 0 24px; }
.mall-stage {
  display: grid;
  grid-template-columns: 210px 1fr 220px;
  gap: 10px;
  min-height: 340px;
}
.mall-cate {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mall-cate-hd {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: linear-gradient(90deg, var(--c-brand-deep), var(--c-brand));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.mall-cate-list {
  padding: 6px 0 8px;
  max-height: 360px;
  overflow-y: auto;
}
.mall-cate-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--c-text);
  border-left: 3px solid transparent;
}
.mall-cate-list a:hover {
  background: var(--c-brand-soft);
  color: var(--c-brand);
  border-left-color: var(--c-brand);
}
.mall-cate-list a .arrow { color: var(--c-text-3); font-size: 12px; }
.mall-banner {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}
.mall-banner-track { position: relative; width: 100%; height: 340px; overflow: hidden; }
.mall-banner-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.45s ease;
  background: linear-gradient(120deg, #10337d 0%, #0d5aa7 45%, #0094e7 100%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 40px; text-decoration: none;
}
.mall-banner-slide.active { opacity: 1; z-index: 1; }
.mall-banner-slide .tag {
  display: inline-block; font-size: 12px; letter-spacing: 1px;
  padding: 3px 10px; border: 1px solid rgba(255,255,255,.4);
  border-radius: 2px; color: #e8f6fd; margin-bottom: 14px; width: fit-content;
}
.mall-banner-slide h2 { margin: 0 0 12px; font-size: 28px; font-weight: 700; line-height: 1.3; color: #fff; }
.mall-banner-slide p { margin: 0 0 20px; font-size: 14px; color: rgba(255,255,255,.85); max-width: 420px; line-height: 1.65; }
.mall-banner-slide .cta {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
  background: #fff; color: var(--c-brand-deep); font-weight: 700; font-size: 13px;
  border-radius: 2px; width: fit-content;
}
.mall-banner-slide .cta:hover { background: var(--c-brand-soft); color: var(--c-brand); }
.mall-banner-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.mall-banner-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); padding: 0;
}
.mall-banner-dots button.active { background: #fff; width: 20px; border-radius: 4px; }
.mall-aside { display: flex; flex-direction: column; gap: 10px; }
.mall-user-card, .mall-quick, .mall-notice {
  background: #fff; border: 1px solid var(--c-border); border-radius: 2px; box-shadow: var(--shadow);
}
.mall-user-card { padding: 16px 14px; text-align: center; }
.mall-user-card .avatar {
  width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand-deep), var(--c-brand));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.mall-user-card .hi { font-size: 13px; color: var(--c-text-2); margin-bottom: 10px; }
.mall-user-card .btns { display: flex; gap: 8px; }
.mall-user-card .btns a {
  flex: 1; height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; border-radius: 2px; border: 1px solid var(--c-brand);
}
.mall-user-card .btns a.primary { background: var(--c-brand); color: #fff; font-weight: 600; }
.mall-user-card .btns a.ghost { color: var(--c-brand); background: #fff; }
.mall-user-card .btns a.ghost:hover { background: var(--c-brand-soft); }
.mall-quick { padding: 10px 8px 12px; }
.mall-quick-hd { font-size: 13px; font-weight: 700; color: var(--c-text); padding: 4px 6px 8px; }
.mall-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mall-quick-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; font-size: 12px; color: var(--c-text-2); border-radius: 2px;
}
.mall-quick-grid a:hover { background: var(--c-brand-soft); color: var(--c-brand); }
.mall-quick-grid .ico {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--c-brand);
}
.mall-quick-grid a:nth-child(2) .ico { background: #0077c2; }
.mall-quick-grid a:nth-child(3) .ico { background: #ff6600; }
.mall-quick-grid a:nth-child(4) .ico { background: #10337d; }
.mall-quick-grid a:nth-child(5) .ico { background: #009d2b; }
.mall-quick-grid a:nth-child(6) .ico { background: #0d5aa7; }
.mall-notice { padding: 10px 12px 12px; flex: 1; }
.mall-notice-hd {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 700; margin-bottom: 8px;
}
.mall-notice-hd a { font-size: 12px; font-weight: 400; color: var(--c-text-3); }
.mall-notice-hd a:hover { color: var(--c-brand); }
.mall-notice ul li {
  font-size: 12px; color: var(--c-text-2); padding: 5px 0;
  border-bottom: 1px dashed var(--c-border-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mall-notice ul li:last-child { border-bottom: 0; }
.mall-notice ul a:hover { color: var(--c-brand); }
.mall-promise {
  margin-top: 12px; background: #fff; border: 1px solid var(--c-border);
  border-radius: 2px; display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: var(--shadow);
}
.mall-promise .item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px; font-size: 13px; color: var(--c-text-2);
  border-right: 1px solid var(--c-border-2);
}
.mall-promise .item:last-child { border-right: 0; }
.mall-promise .item b { color: var(--c-brand-deep); font-size: 14px; }
.mall-promise .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand); }
.mall-floor {
  margin-top: 16px; background: #fff; border: 1px solid var(--c-border);
  border-radius: 2px; box-shadow: var(--shadow); overflow: hidden;
}
.mall-floor-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 48px; border-bottom: 1px solid var(--c-border-2);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.mall-floor-hd h2 {
  margin: 0; font-size: 18px; font-weight: 700; color: var(--c-brand-deep);
  display: flex; align-items: center; gap: 8px;
}
.mall-floor-hd h2::before {
  content: ""; width: 4px; height: 16px; background: var(--c-brand); border-radius: 2px;
}
.mall-floor-hd .tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.mall-floor-hd .tabs a, .mall-floor-hd .tabs button {
  padding: 4px 12px; font-size: 12px; color: var(--c-text-2);
  border-radius: 12px; border: 1px solid transparent;
}
.mall-floor-hd .tabs a:hover, .mall-floor-hd .tabs a.active {
  color: var(--c-brand); border-color: var(--c-brand); background: var(--c-brand-soft);
}
.mall-floor-hd .more { font-size: 12px; color: var(--c-text-3); }
.mall-floor-hd .more:hover { color: var(--c-brand); }
.mall-floor-bd { padding: 12px; }
.mall-product-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.mall-product-grid .product-card {
  border: 1px solid var(--c-border-2); border-radius: 2px; padding: 10px;
  background: #fff; transition: box-shadow .15s, border-color .15s, transform .15s;
  display: flex; flex-direction: column; min-height: 100%;
}
.mall-product-grid .product-card:hover {
  border-color: var(--c-brand); box-shadow: 0 4px 16px rgba(0,148,231,.12); transform: translateY(-2px);
}
.mall-product-grid .product-card .thumb {
  aspect-ratio: 1; background: #f7f9fb; border-radius: 2px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 8px;
}
.mall-product-grid .product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.mall-product-grid .product-card .model {
  font-size: 13px; line-height: 1.4; color: var(--c-text); height: 2.8em; overflow: hidden; margin-bottom: 4px;
}
.mall-product-grid .product-card .meta {
  font-size: 12px; color: var(--c-text-3); margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mall-product-grid .product-card .price { color: var(--c-price); font-size: 16px; font-weight: 700; margin-top: auto; }
.mall-product-grid .product-card .price em { font-style: normal; font-size: 12px; margin-right: 1px; }
.mall-product-grid .product-card .stock { font-size: 11px; color: var(--c-success); margin-top: 4px; }
.mall-product-grid .product-card .stock.out { color: var(--c-text-3); }
.mall-floor-empty { padding: 40px; text-align: center; color: var(--c-text-3); font-size: 13px; }
.mall-brands {
  margin-top: 16px; background: #fff; border: 1px solid var(--c-border);
  border-radius: 2px; padding: 14px 16px; box-shadow: var(--shadow);
}
.mall-brands-hd { font-size: 14px; font-weight: 700; color: var(--c-brand-deep); margin-bottom: 10px; }
.mall-brands-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mall-brands-list a {
  padding: 6px 14px; border: 1px solid var(--c-border); border-radius: 2px;
  font-size: 12px; color: var(--c-text-2); background: #fafafa;
}
.mall-brands-list a:hover { border-color: var(--c-brand); color: var(--c-brand); background: var(--c-brand-soft); }
@media (max-width: 1100px) {
  .mall-stage { grid-template-columns: 180px 1fr; }
  .mall-aside { display: none; }
  .mall-product-grid { grid-template-columns: repeat(4, 1fr); }
  .mall-promise { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .mall-stage { grid-template-columns: 1fr; }
  .mall-cate { display: none; }
  .mall-banner-track, .mall-banner-slide { min-height: 200px; height: 200px; }
  .mall-banner-slide h2 { font-size: 20px; }
  .mall-product-grid { grid-template-columns: repeat(2, 1fr); }
  .mall-promise { grid-template-columns: 1fr 1fr; }
}
