/* 助农商城首页（主色对齐全站 h5-ui 蓝） */
.shop-home {
  --shop-primary: #3d6eff;
  --shop-primary-dark: #2f5ae6;
  --shop-orange: #ff6a2a;
  --shop-bg: #f5f7fb;
  --shop-card: #fff;
  background: var(--shop-bg);
  min-height: 100vh;
  font-size: 14px;
  color: #1f2937;
}
.shop-home .vui-top {
  background: linear-gradient(135deg, #4a7dff 0%, #3d6eff 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 2px 12px rgba(61, 110, 255, .25);
}
.shop-home .vui-top h1 { color: #fff; font-weight: 650; letter-spacing: .02em; }

.shop-search {
  display: flex;
  gap: 10px;
  padding: 12px 16px 4px;
  background: transparent;
}
.shop-search input {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(61, 110, 255, .08);
}
.shop-search input::placeholder { color: #9aa3b2; }
.shop-search button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #4a7dff, var(--shop-primary));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(61, 110, 255, .28);
}

.shop-banner-wrap {
  margin: 12px 16px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e8eefc;
  box-shadow: 0 6px 18px rgba(15, 35, 80, .08);
  position: relative;
}
.shop-banner {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.shop-banner .slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
}
.shop-banner .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.shop-banner .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-banner .slide .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.shop-banner .dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.shop-banner .dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: all .25s;
}
.shop-banner .dots i.on {
  width: 16px;
  border-radius: 4px;
  background: #fff;
}

/* 助农商城公告：对齐首页 gov-notice-bar */
.shop-home .shop-notice-bar {
  margin: 10px 16px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.shop-home .shop-notice-bar .gov-notice-bar-inner {
  max-width: none;
  margin: 0;
  gap: 8px;
}
.shop-home .shop-notice-roll {
  flex: 1;
  min-width: 0;
  height: 28px;
  overflow: hidden;
  position: relative;
}
.shop-home .shop-notice-track {
  transition: transform .45s ease;
  will-change: transform;
}
.shop-home .shop-notice-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.shop-home .shop-notice-item .gov-notice-title {
  flex: 1;
  min-width: 0;
}

.shop-panel {
  margin: 12px 16px 0;
  padding: 14px 12px 16px;
  background: var(--shop-card);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.shop-panel .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.shop-panel .hd h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shop-panel .hd h2::before {
  content: "";
  width: 4px; height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #4a7dff, #3d6eff);
}
.shop-panel .hd .more {
  font-size: 12px;
  color: #8a93a3;
  text-decoration: none;
}

.shop-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 6px;
}
.shop-cats a {
  text-align: center;
  color: #334155;
  text-decoration: none;
  font-size: 12px;
}
.shop-cats img,
.shop-cats .ph {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 6px;
  display: block;
  object-fit: cover;
  background: linear-gradient(145deg, #eef3ff, #e8eefc);
  box-shadow: 0 3px 8px rgba(61, 110, 255, .12);
}
.shop-cats .ph {
  line-height: 48px;
  font-size: 20px;
  text-align: center;
}
.shop-cats span.name {
  display: block;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.shop-card {
  display: block;
  color: #333;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8eef8;
  transition: transform .15s, box-shadow .15s;
}
.shop-card:active {
  transform: scale(.98);
}
.shop-card .cover {
  position: relative;
  background: #eef2f8;
}
.shop-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.shop-card .tag {
  position: absolute;
  left: 8px; top: 8px;
  background: linear-gradient(135deg, #ff8a3d, var(--shop-orange));
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.shop-card .body { padding: 10px 10px 12px; }
.shop-card .t {
  font-size: 14px;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
  color: #1f2937;
  font-weight: 560;
}
.shop-card .sub {
  margin-top: 4px;
  font-size: 11px;
  color: #8a93a3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  gap: 6px;
}
.shop-card .p {
  color: var(--shop-orange);
  font-size: 16px;
  font-weight: 700;
}
.shop-card .p small {
  font-size: 12px;
  font-weight: 600;
}
.shop-card .mp {
  font-size: 11px;
  color: #bbb;
  text-decoration: line-through;
}
.shop-card .sales {
  font-size: 11px;
  color: #9aa3b2;
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #99a3b2;
  padding: 28px 12px;
  font-size: 13px;
}

@media (min-width: 992px) {
  html.gov-pc-page .shop-home {
    font-size: 15px;
  }
  html.gov-pc-page .shop-home .shop-search {
    padding: 18px 28px 10px;
    max-width: none;
  }
  html.gov-pc-page .shop-home .shop-search input {
    height: 42px;
    border-radius: 8px;
    font-size: 15px;
  }
  html.gov-pc-page .shop-home .shop-search button {
    height: 42px;
    border-radius: 8px;
    padding: 0 22px;
  }
  html.gov-pc-page .shop-home .shop-banner-wrap {
    margin: 12px 28px 0;
    max-width: none;
    border-radius: 12px;
  }
  html.gov-pc-page .shop-home .shop-banner {
    aspect-ratio: 21 / 7;
  }
  html.gov-pc-page .shop-home .shop-notice-bar {
    margin: 12px 28px 0;
    max-width: none;
  }
  html.gov-pc-page .shop-home .shop-panel {
    margin: 16px 28px 0;
    max-width: none;
    padding: 20px 18px 22px;
    border: 1px solid #e8eef8;
    border-radius: 12px;
    box-shadow: none;
  }
  html.gov-pc-page .shop-home .shop-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  html.gov-pc-page .shop-home .shop-grid .shop-card,
  html.gov-pc-page .shop-home .shop-card {
    border: 1px solid #e8eef8;
    border-radius: 8px;
    transition: box-shadow .15s, transform .15s;
  }
  html.gov-pc-page .shop-home .shop-card:hover {
    box-shadow: 0 8px 24px rgba(15, 35, 80, .08);
    transform: translateY(-2px);
  }
  html.gov-pc-page .shop-home .shop-cats {
    gap: 18px 10px;
  }
  html.gov-pc-page .shop-home .shop-cats img,
  html.gov-pc-page .shop-home .shop-cats .ph {
    width: 56px;
    height: 56px;
  }
}
