body {
  color: #333333; }

.ns-supply-index {
  background-color: #FFFFFF; }

.ns-goods-store {
  padding: 20px; }
  .ns-goods-store .ns-store-info {
    width: 100%;
    /* height: 115px; */
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    display: flex;
    box-sizing: border-box;
    position: relative; }
    .ns-goods-store .ns-store-info .store-img {
      flex-shrink: 0;
      width: 75px;
      height: 75px;
      margin-right: 10px; }
      .ns-goods-store .ns-store-info .store-img img {
        width: 100%;
        height: 100%;
        object-fit: cover; }
    .ns-goods-store .ns-store-info .store-info {
      flex: 1; }
    .ns-goods-store .ns-store-info .store-name-wrap {
      display: flex;
      justify-content: space-between;
      align-items: center; }
    .ns-goods-store .ns-store-info .store-btn .layui-btn {
      height: 24px;
      line-height: 22px;
      padding: 0 10px; }
    .ns-goods-store .ns-store-info .store-intro {
      font-size: 12px;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      margin: 7px 0 8px;
      color: #646566; }
    .ns-goods-store .ns-store-info .store-goods span {
      color: #969799;
      font-size: 12px;
      margin-right: 20px; }
  .ns-goods-store .ns-store-score {
    position: absolute;
    width: 200px;
    height: 115px;
    top: 0;
    right: 0;
    padding: 20px 30px;
    box-sizing: border-box;
    line-height: 25px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #009c50);
    text-align: right; }
    .ns-goods-store .ns-store-score span {
      font-weight: 500;
      color: #646566; }

.ns-goods-list {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap; }

.ns-goods-li {
  width: 200px;
  overflow: hidden;
  margin-right: 47.5px;
  margin-bottom: 30px; }
  .ns-goods-li:nth-child(5n) {
    margin-right: 0; }
  .ns-goods-li .ns-goods-img {
    width: 100%;
    height: 170px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative; }
    .ns-goods-li .ns-goods-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 1s ease-out; }
    .ns-goods-li .ns-goods-img .ns-goods-sale {
      font-size: 12px;
      position: absolute;
      bottom: 0;
      padding-left: 10px;
      width: 100%;
      height: 30px;
      line-height: 30px;
      background-color: rgba(0, 0, 0, 0.6);
      color: var(--primary-color-disabled, #c8c9cc);
      box-sizing: border-box; }
      .ns-goods-li .ns-goods-img .ns-goods-sale .sale-label {
        opacity: .66; }
      .ns-goods-li .ns-goods-img .ns-goods-sale .sale-num {
        display: inline-block;
        margin-left: 10px;
        color: #fff; }
    .ns-goods-li .ns-goods-img .hover-content {
      display: none;
      font-size: 12px;
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 30px;
      line-height: 30px;
      text-align: center;
      background-color: var(--primary-color, #009c50);
      color: #fff;
      font-weight: bolder; }
  .ns-goods-li .ns-goods-img:hover {
    border: 2px solid var(--primary-color, #009c50); }
    .ns-goods-li .ns-goods-img:hover img {
      transform: scale(1.2); }
    .ns-goods-li .ns-goods-img:hover .hover-content {
      display: block; }
  .ns-goods-li .ns-goods-name {
    font-size: 12px;
    color: #323233;
    margin: 5px 0;
    height: 42px; }
    .ns-goods-li .ns-goods-name:hover {
      color: var(--primary-color, #009c50); }
  .ns-goods-li .ns-goods-info {
    position: relative; }
    .ns-goods-li .ns-goods-info p {
      font-size: 12px; }
      .ns-goods-li .ns-goods-info p span:first-child {
        color: #969799;
        display: inline-block; }
    .ns-goods-li .ns-goods-info .ns-goods-profit {
      font-size: 15px; }
    .ns-goods-li .ns-goods-info p:nth-child(2) {
      margin-top: 5px; }
    .ns-goods-li .ns-goods-info p:nth-child(3) {
      position: absolute;
      right: 0;
      bottom: 0;
      cursor: pointer; }
/* ===== 商品卡片改版：京东式版式，配色走本站绿色体系 ===== */
.ns-goods-list {
  gap: 15px; }

.ns-goods-list .ns-goods-li {
  position: relative;
  width: calc((100% - 75px) / 6);
  margin: 0;
  padding: 0 0 14px;
  background-color: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s ease; }

.ns-goods-list .ns-goods-li:hover {
  box-shadow: 0 0 0 1px var(--primary-color, #07c160), 0 0 10px rgba(7, 193, 96, 0.30);
  transform: translateY(-3px); }

.ns-goods-list .ns-goods-li .ns-goods-img {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background-color: #fff; }
  .ns-goods-list .ns-goods-li .ns-goods-img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; }
  .ns-goods-list .ns-goods-li:hover .ns-goods-img {
    border: none; }

.ns-goods-list .ns-goods-li .ns-goods-min {
  /* 位置不够时允许收缩并打点（原来 flex:none：像「99999斤起批」这种长数字会顶到「选规格」按钮上）2026-10-16 */
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #999;
  white-space: nowrap; }

.ns-goods-list .ns-goods-li .ns-goods-title {
  display: flex;
  /* 标签（自营 / 需确认价）与单行标题上下居中：标题行高 22px、标签 18px，
     原来 flex-start 会让标签顶在上面、看着偏高 2px（2026-10-15 用户提的） */
  align-items: center;
  margin: 10px 10px 0; }

.ns-goods-list .ns-goods-li .ns-goods-tag {
  flex: none;
  height: 18px;
  line-height: 16px;
  padding: 0 5px;
  margin-right: 5px;
  font-size: 12px;
  color: var(--primary-color, #009c50);
  background-color: var(--primary-color-light, #eefbf3);
  border: 1px solid #a8e0c4;
  border-radius: 3px;
  box-sizing: border-box; }

.ns-goods-list .ns-goods-li .ns-goods-name {
  flex: 1;
  min-width: 0;
  height: 22px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: #323233;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; }
  .ns-goods-list .ns-goods-li .ns-goods-name:hover {
    color: var(--primary-color, #009c50); }

.ns-goods-list .ns-goods-li .ns-goods-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 10px 0;
  font-size: 12px;
  color: #999; }
  .ns-goods-list .ns-goods-li .ns-goods-supplier {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; }
  .ns-goods-list .ns-goods-li .ns-goods-stock {
    flex: none; }

.ns-goods-list .ns-goods-li .ns-goods-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  margin: 8px 10px 0;
  padding-right: 34px; }

/* 带「选规格」胶囊的卡片：它比 + 圆钮宽，底行要给它留位置，否则会压住「起批量」文字（2026-10-16） */
.ns-goods-list .ns-goods-li .ns-goods-bottom.has-spec {
  padding-right: 72px; }

.ns-goods-list .ns-goods-li .ns-goods-price {
  color: var(--primary-color, #009c50);
  white-space: nowrap; }
  .ns-goods-list .ns-goods-li .ns-goods-price i {
    font-style: normal;
    font-size: 12px;
    margin-right: 1px; }
  .ns-goods-list .ns-goods-li .ns-goods-price b {
    font-size: 20px;
    font-weight: 700; }
  .ns-goods-list .ns-goods-li .ns-goods-price em {
    font-style: normal;
    font-size: 12px;
    color: #999; }
  .ns-goods-list .ns-goods-li .ns-goods-price em.ns-price-dec {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color, #009c50); }

/* 多规格商品：卡片按钮换成「选规格」（跳详情页选完规格再加车），只有单规格才显示「+」直接加购 */
.ns-goods-list .ns-goods-li .ns-goods-spec-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 26px;
  line-height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  background-color: var(--primary-color, #07c160);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background-color .2s; }
  .ns-goods-list .ns-goods-li .ns-goods-spec-btn:hover {
    background-color: var(--primary-color, #009c50); }
.ns-goods-list .ns-goods-li .ns-goods-cart {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background-color: var(--primary-color, #07c160);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, transform .2s; }
  .ns-goods-list .ns-goods-li .ns-goods-cart:hover {
    background-color: var(--primary-color, #009c50);
    transform: scale(1.06); }
  .ns-goods-list .ns-goods-li .ns-goods-cart.is-adding {
    opacity: .6;
    cursor: default; }
  .ns-goods-list .ns-goods-li .ns-goods-cart i {
    font-size: 14px; }
.ns-goods-list .ns-goods-li .ns-goods-shop {
  display: flex;
  align-items: center;
  margin: 8px 10px 0;
  padding-top: 8px;
  font-size: 12px;
  line-height: 18px; }

.ns-goods-list .ns-goods-li .ns-goods-shop-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #646566;
  text-decoration: none; }
  .ns-goods-list .ns-goods-li .ns-goods-shop-name:hover {
    color: var(--primary-color, #009c50); }

/* 卡片悬停：不再放大图片、不再给图片加边框（改为整卡浮动阴影） */
.ns-goods-li .ns-goods-img:hover {
  border: none; }
  .ns-goods-li .ns-goods-img:hover img {
    transform: none; }
/* ===== 布局自适应：容器定位 + 商品栅格断点 ===== */
.ns-supply-index-center {
  position: relative; }

/* 栅格：>=1500 六列，之后按窗口逐级降列 */
@media screen and (max-width: 1499px) {
  .ns-goods-list .ns-goods-li {
    width: calc((100% - 60px) / 5); } }

@media screen and (max-width: 1279px) {
  .ns-goods-list .ns-goods-li {
    width: calc((100% - 45px) / 4); } }



/* ===== 店铺主页：店铺名片 / 标签 / 装修图 / 简介 ===== */
/* 注意：这里不能加 overflow:hidden —— 店名旁的企业认证气泡会挂在卡片外面，加了会被裁掉 */
.ns-shop-hero { position: relative; border-radius: 12px; background-color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.ns-shop-hero-bg { height: 120px; border-radius: 12px 12px 0 0; background: linear-gradient(120deg, #1b3a2a 0%, #2f6b4a 55%, #3f8a5f 100%); background-size: cover; background-position: center; }
.ns-shop-hero-body { display: flex; align-items: flex-start; padding: 0 24px 18px; margin-top: -34px; }
.ns-shop-logo { flex: none; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; border: 3px solid #fff; background-color: var(--page-bg-color, #f5f6f7); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.ns-shop-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ns-shop-head { flex: 1; min-width: 0; padding: 40px 0 0 16px; }
.ns-shop-title { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.ns-shop-name { font-size: 20px; font-weight: 700; color: #222222; }
.ns-shop-badge { flex: none; margin-left: 8px; padding: 1px 7px; font-size: 12px; font-style: normal; color: #fff; background-color: var(--primary-color, #07c160); border-radius: 3px; }
.ns-shop-more { margin-left: 6px; font-size: 14px; color: var(--primary-color-dark, #999999); cursor: pointer; }
.ns-shop-title:hover .ns-shop-more, .ns-shop-title.is-open .ns-shop-more { color: var(--primary-color, #009c50); }
/* 店名旁的认证气泡：认证主体 / 统一社会信用代码 / 营业执照 */
.ns-shop-certbox { display: none; position: absolute; left: 0; top: 32px; z-index: 40; width: 320px; padding: 16px; box-sizing: border-box; background-color: #fff; border: 1px solid #f0f0f0; border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.ns-shop-title:hover .ns-shop-certbox, .ns-shop-title.is-open .ns-shop-certbox { display: block; }
.ns-shop-certbox-title { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #222222; }
.ns-shop-certbox-row { display: flex; margin-bottom: 6px; font-size: 12px; line-height: 18px; }
.ns-shop-certbox-row span { flex: none; width: 110px; color: var(--primary-color-dark, #999999); }
.ns-shop-certbox-row b { flex: 1; min-width: 0; font-weight: 400; color: #333333; word-break: break-all; }
.ns-shop-certbox-img { display: block; width: 100%; max-height: 150px; margin-top: 8px; object-fit: contain; background-color: #fafafa; border: 1px solid #f0f0f0; border-radius: 6px; cursor: zoom-in; }
/* 信息行：入驻时长 | 服务分 | 主营类目 */
.ns-shop-info { display: flex; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 13px; color: #666666; }
.ns-shop-info > span { position: relative; margin-right: 26px; }
.ns-shop-info > span + span::before { content: "|"; position: absolute; left: -14px; color: #e0e0e0; }
.ns-shop-info .ns-shop-score b { color: var(--primary-color, #009c50); font-weight: 700; }
/* 标签行：回头率 / 所在地 / 成立时间 / 在售 */
.ns-shop-tags { display: flex; flex-wrap: wrap; margin-top: 10px; }
.ns-shop-tags span { margin: 0 10px 6px 0; padding: 3px 10px; font-size: 12px; color: #666666; background-color: var(--page-bg-color, #f5f6f7); border-radius: 4px; }
/* 店铺简介只显示在「店铺简介」标签里（顶部那条背景图区域不再重复显示，见第 84 条） */
.ns-shop-side { flex: none; display: flex; align-items: center; padding-top: 42px; }
.ns-shop-follow { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; font-size: 13px; color: #fff; background-color: var(--primary-color, #07c160); border-radius: 17px; text-decoration: none; }
.ns-shop-follow i { margin-right: 4px; }
.ns-shop-follow em { margin-left: 2px; font-style: normal; }
.ns-shop-follow:hover { color: #fff; background-color: var(--primary-color, #009c50); }
.ns-shop-follow.is-on { color: var(--primary-color-dark, #999999); background-color: #f2f3f5; }
.ns-shop-follow.is-on:hover { color: #666666; background-color: #ebedef; }
.ns-shop-cta { display: inline-flex; align-items: center; height: 34px; margin-left: 24px; padding: 0 16px; font-size: 13px; color: #fff; background-color: var(--primary-color, #07c160); border-radius: 17px; text-decoration: none; }
.ns-shop-cta:hover { color: #fff; background-color: var(--primary-color, #009c50); }
.ns-shop-cta i { margin-right: 4px; }
.ns-shop-notice { display: flex; align-items: center; margin: 0 24px 18px; padding: 8px 14px; font-size: 13px; color: #8a5a00; background-color: #fff8e6; border: 1px solid #ffe3a3; border-radius: 8px; }
.ns-shop-notice i { margin-right: 8px; color: var(--primary-color, #009c50); }
.ns-shop-tabs { display: flex; align-items: center; height: 52px; margin-top: 16px; margin-bottom: 12px; padding: 0 24px; background-color: #fff; border-radius: 12px; }
.ns-shop-tabs a { position: relative; margin-right: 30px; font-size: 15px; color: #333333; text-decoration: none; }
.ns-shop-tabs a:hover { color: var(--primary-color, #009c50); }
.ns-shop-tabs a.is-active { color: var(--primary-color, #009c50); font-weight: 600; }
/* 选中下划线只给标签本身，别落到「全部商品」下拉里的分类项上 */
.ns-shop-tabs > a.is-active::after,
.ns-shop-tab-drop > a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; border-radius: 1px; background-color: var(--primary-color, #009c50); }
/* 第一个标签：全部商品 / 当前分类，悬浮或点击展开本店自定义分类 */
.ns-shop-tab-drop { position: relative; }
.ns-shop-tab-drop > a { display: inline-flex; align-items: center; }
.ns-shop-tab-drop > a i { margin-left: 4px; font-size: 12px; transition: transform .15s; }
.ns-shop-tab-drop:hover > a i, .ns-shop-tab-drop.is-open > a i { transform: rotate(180deg); }
.ns-shop-cats { display: none; position: absolute; left: 0; top: 34px; z-index: 30; min-width: 200px; max-height: 420px; overflow-y: auto; padding: 6px 0; background-color: #fff; border: 1px solid #f0f0f0; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.ns-shop-tab-drop:hover .ns-shop-cats, .ns-shop-tab-drop.is-open .ns-shop-cats { display: block; }
.ns-shop-cats a { display: flex; align-items: center; justify-content: space-between; margin-right: 0; padding: 9px 16px; font-size: 13px; color: #333333; white-space: nowrap; }
.ns-shop-cats a:hover { color: var(--primary-color, #009c50); background-color: #f7f9fb; }
.ns-shop-cats a.is-active { color: var(--primary-color, #009c50); font-weight: 600; }
.ns-shop-cats a em { margin-left: 16px; font-style: normal; color: var(--primary-color-dark, #999999); }
.ns-shop-deco { display: flex; flex-wrap: wrap; margin-top: 16px; padding: 20px; background-color: #fff; border-radius: 12px; }
.ns-shop-deco-item { width: calc((100% - 24px) / 3); margin: 0 12px 12px 0; border-radius: 10px; overflow: hidden; background-color: #f7f8f7; }
.ns-shop-deco-item:nth-child(3n) { margin-right: 0; }
.ns-shop-deco-item img { display: block; width: 100%; }
.ns-shop-about { margin-top: 16px; padding: 22px 24px; background-color: #fff; border-radius: 12px; }
.ns-shop-about-block + .ns-shop-about-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid #f2f3f5; }
.ns-shop-about-title { margin-bottom: 10px; font-size: 15px; font-weight: 600; color: #222222; }
/* pre-line：简介是多行文本，靠 CSS 还原换行（模板里不能 nl2br，会被转义成文字） */
.ns-shop-about-text { font-size: 13px; line-height: 24px; color: #666666; word-break: break-word; white-space: pre-line; }
