/* ============================================================
   模板：商城（独立模板 · 电商促销站）
   布局：白底顶栏（大搜索）+ 红色分类条 / 促销 banner + 快捷入口 + 商品楼层
   ============================================================ */
body.theme-mall {
  --p: #e11d48;
  --p-dark: #be123c;
  --p-light: #ffe4e6;
  --ink: #1f2937;
  --muted: #9ca3af;
  --line: #fecdd3;
  --bg: #fff5f5;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(190, 18, 60, 0.06), 0 4px 14px rgba(190, 18, 60, 0.07);
}

body.theme-mall .mt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

/* ---------- 顶栏：白底 + 大搜索 ---------- */
body.theme-mall .mt-header { background: #fff; border-bottom: 1px solid #ffe4e6; }
body.theme-mall .mt-bar { display: flex; align-items: center; gap: 18px; height: 64px; }
body.theme-mall .mt-logo {
  display: flex; align-items: center; gap: 9px; color: var(--ink);
  font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: 1px; flex-shrink: 0;
}
body.theme-mall .mt-logo img { width: 32px; height: 32px; border-radius: 8px; }
body.theme-mall .mt-logo em {
  font-style: normal; font-size: 11px; font-weight: 700; background: linear-gradient(90deg, #e11d48, #f97316);
  color: #fff; padding: 3px 9px; border-radius: 4px; letter-spacing: 2px;
}
body.theme-mall .mt-search { display: flex; flex: 1; max-width: 480px; }
body.theme-mall .mt-search input {
  flex: 1; border: 2px solid #e11d48; border-right: none; border-radius: 10px 0 0 10px;
  padding: 9px 16px; font-size: 13.5px; color: var(--ink); min-width: 0;
}
body.theme-mall .mt-search input:focus { outline: none; background: #fff5f5; }
body.theme-mall .mt-search button {
  border: none; background: #e11d48; color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 0 22px; border-radius: 0 10px 10px 0; cursor: pointer;
}
body.theme-mall .mt-search button:hover { background: #be123c; }
body.theme-mall .mt-userzone { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-shrink: 0; }
body.theme-mall .mt-admin {
  color: #be123c; text-decoration: none; font-size: 13px; white-space: nowrap;
  border: 1px solid #fecdd3; padding: 6px 12px; border-radius: 999px;
}
body.theme-mall .mt-admin:hover { background: #ffe4e6; }
body.theme-mall .mt-login {
  background: linear-gradient(90deg, #e11d48, #f43f5e); color: #fff; border: none; font-weight: 700;
  font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}
body.theme-mall .mt-login:hover { filter: brightness(1.06); }

/* ---------- 红色分类条 ---------- */
body.theme-mall .mt-catbar { background: linear-gradient(90deg, #be123c, #e11d48 60%, #f43f5e); }
body.theme-mall .mt-catbar a {
  display: inline-block; color: #ffe4e6; text-decoration: none;
  padding: 10px 15px; font-size: 13.5px; white-space: nowrap;
}
body.theme-mall .mt-catbar a:first-child { background: rgba(0, 0, 0, 0.22); color: #fff; font-weight: 700; }
body.theme-mall .mt-catbar a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

body.theme-mall .mt-main { background: var(--bg); padding: 18px 0 60px; min-height: 60vh; }
body.theme-mall .mt-crumb { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
body.theme-mall .mt-crumb a { color: var(--p-dark); text-decoration: none; }

/* ---------- 促销 banner ---------- */
body.theme-mall .mt-banner {
  position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 16px;
  min-height: 220px; box-shadow: 0 10px 26px rgba(190, 18, 60, 0.22);
}
body.theme-mall .mt-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.theme-mall .mt-banner-body {
  position: relative; z-index: 2; padding: 44px 40px;
  background: linear-gradient(100deg, rgba(136, 19, 55, 0.88) 0%, rgba(225, 29, 72, 0.72) 55%, rgba(225, 29, 72, 0.15) 100%);
  min-height: 220px; display: flex; flex-direction: column; justify-content: center;
}
body.theme-mall .mt-banner-body h1 { color: #fff; font-size: 30px; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
body.theme-mall .mt-banner-body p { color: #ffe4e6; font-size: 14px; margin: 10px 0 18px; }
body.theme-mall .mt-banner-btn {
  align-self: flex-start; background: #facc15; color: #881337; font-weight: 800; font-size: 14.5px;
  text-decoration: none; padding: 11px 28px; border-radius: 999px; letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(250, 204, 21, 0.45);
}
body.theme-mall .mt-banner-btn:hover { background: #fde047; transform: translateY(-1px); }

/* ---------- 快捷入口 ---------- */
body.theme-mall .mt-quick {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 20px;
}
body.theme-mall .mt-quick a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; padding: 14px 6px; text-decoration: none; color: var(--ink);
  font-size: 13px; font-weight: 600; transition: all .13s;
}
body.theme-mall .mt-quick a span { display: block; font-size: 26px; margin-bottom: 6px; }
body.theme-mall .mt-quick a:hover {
  border-color: #fb7185; transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.13); color: var(--p-dark);
}

/* ---------- 商品楼层 ---------- */
body.theme-mall .mt-floor { margin-bottom: 26px; }
body.theme-mall .mt-floor-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px; padding-left: 12px; border-left: 4px solid #e11d48;
}
body.theme-mall .mt-floor-head h2 { font-size: 19px; color: var(--ink); letter-spacing: 1px; }
body.theme-mall .mt-floor-head span { color: var(--muted); font-size: 12.5px; }
body.theme-mall .mt-floor-head a { color: var(--p-dark); text-decoration: none; font-size: 13px; }
body.theme-mall .mt-floor-head a:hover { color: #e11d48; }

body.theme-mall .mt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
body.theme-mall .mt-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 商品卡片 */
body.theme-mall .mt-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
body.theme-mall .mt-card:hover {
  border-color: #fb7185; transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.14);
}
body.theme-mall .mt-card-cover { position: relative; aspect-ratio: 1/1; background: #fff1f2; }
body.theme-mall .mt-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.theme-mall .mt-noimg {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 52px;
}
body.theme-mall .mt-off {
  position: absolute; top: 0; right: 0; background: #e11d48; color: #fff;
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 0 0 0 10px;
}
body.theme-mall .mt-soldout {
  position: absolute; inset: 0; background: rgba(31, 41, 55, 0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; letter-spacing: 4px;
}
body.theme-mall .mt-card-body { padding: 11px 13px 13px; display: flex; flex-direction: column; flex: 1; }
body.theme-mall .mt-card-body b {
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
body.theme-mall .mt-card-body p {
  color: var(--muted); font-size: 12px; margin: 5px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
body.theme-mall .mt-card-foot { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
body.theme-mall .mt-price {
  color: #e11d48; font-weight: 800; font-size: 20px;
  font-family: "DIN Alternate", "Bahnschrift", -apple-system, sans-serif;
}
body.theme-mall .mt-price i { font-style: normal; font-size: 13px; margin-right: 1px; }
body.theme-mall .mt-card-foot s { color: #d1d5db; font-size: 12px; }
body.theme-mall .mt-sales { color: var(--muted); font-size: 11.5px; margin-left: auto; white-space: nowrap; }
body.theme-mall .mt-empty {
  text-align: center; color: var(--p-dark); background: #fff; border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 56px 0; margin-bottom: 20px; font-size: 15px;
}

/* ---------- 列表页工具条 ---------- */
body.theme-mall .mt-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 16px; flex-wrap: wrap;
}
body.theme-mall .mt-sorts { display: flex; gap: 4px; }
body.theme-mall .mt-sorts a {
  color: #6b7280; text-decoration: none; font-size: 13.5px;
  padding: 6px 14px; border-radius: 999px;
}
body.theme-mall .mt-sorts a:hover { background: #ffe4e6; color: var(--p-dark); }
body.theme-mall .mt-sorts a.on { background: #e11d48; color: #fff; font-weight: 700; }
body.theme-mall .mt-toolbar .channel-search { margin: 0; flex: 1; max-width: 380px; }

/* ---------- 页脚 ---------- */
body.theme-mall .mt-footer { background: #1f2937; color: #d1d5db; padding: 34px 0 20px; }
body.theme-mall .mt-foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; margin-bottom: 22px;
}
body.theme-mall .mt-foot-grid b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 10px; }
body.theme-mall .mt-foot-grid p { font-size: 12.5px; line-height: 1.8; }
body.theme-mall .mt-foot-grid a {
  display: block; color: #9ca3af; text-decoration: none; font-size: 12.5px; padding: 3px 0;
}
body.theme-mall .mt-foot-grid a:hover { color: #fda4af; }
body.theme-mall .mt-copy {
  border-top: 1px solid #374151; padding-top: 16px; text-align: center;
  color: #6b7280; font-size: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  body.theme-mall .mt-grid, body.theme-mall .mt-grid-4 { grid-template-columns: repeat(3, 1fr); }
  body.theme-mall .mt-quick { grid-template-columns: repeat(3, 1fr); }
  body.theme-mall .mt-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body.theme-mall .mt-grid, body.theme-mall .mt-grid-4 { grid-template-columns: repeat(2, 1fr); }
  body.theme-mall .mt-search { display: none; }
  body.theme-mall .mt-banner-body { padding: 26px 22px; min-height: 160px; }
  body.theme-mall .mt-banner-body h1 { font-size: 22px; }
  body.theme-mall .mt-catbar { overflow-x: auto; }
  body.theme-mall .mt-foot-grid { grid-template-columns: 1fr; }
}
