/**
 * ======= sanxio store · 全店对齐首页无边框风格 start ===========
 * 须在 home-premium / catalog / profile / contact / channel-list 之后加载
 * 组头：仅底部分割线；内容卡：无描边外框
 */

/* ---------- 全店组头：压掉蓝条白底 ---------- */
body.sx-store-advanced .sanxio-home-section-card--unified-list > .sanxio-home-section__head,
body.sx-store-advanced .sanxio-home-section-card--unified-carousel > .sanxio-home-section__head,
body.sx-store-advanced .sca-catalog .sanxio-home-section__head.sca-catalog-head,
body.sx-store-advanced .sca-profile-block__head.sanxio-home-section__head,
body.sx-store-advanced .sca-contact-block__head.sanxio-home-section__head,
body.sx-store-advanced .sca-block.sanxio-home-section-card .sanxio-home-section__head,
body.sx-store-advanced.sanxio-home-premium-page .sca-catalog .sanxio-home-section__head.sca-catalog-head,
body.sx-store-advanced.sanxio-home-premium-page .sca-profile-block__head.sanxio-home-section__head,
body.sx-store-advanced.sanxio-home-premium-page .sca-contact-block__head.sanxio-home-section__head {
  border: none !important;
  border-bottom: 1px solid var(--md3-color-on-surface, #1a1c1e) !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* ---------- 商品卡：无边框 tile ---------- */
body.sx-store-advanced .sca-grid--products .sanxio-home-product-card,
body.sx-store-advanced .sx-store-media-grid .sanxio-home-product-card,
body.sx-store-advanced .sx-store-media-rail .sanxio-home-product-card,
body.sx-store-advanced.sanxio-home-premium-page .sanxio-home-section-card--unified-carousel .sanxio-home-product-card,
body.sx-store-advanced--mall-catalog .sca-grid--products .sanxio-home-product-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible;
}

body.sx-store-advanced .sca-grid--products .sanxio-home-product-card__link,
body.sx-store-advanced .sx-store-media-card .sanxio-home-product-card__link,
body.sx-store-advanced--mall-catalog .sca-grid--products .sanxio-home-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

body.sx-store-advanced .sca-grid--products .sanxio-home-product-card__img-wrap,
body.sx-store-advanced .sx-store-media-card .sanxio-home-product-card__img-wrap,
body.sx-store-advanced--mall-catalog .sca-grid--products .sanxio-home-product-card__img-wrap {
  background: var(--md3-color-surface-container, #e9ecf1);
  border: none;
  border-radius: var(--md3-shape-sm, 8px);
  overflow: hidden;
}

body.sx-store-advanced .sca-grid--products .sanxio-home-product-card__title,
body.sx-store-advanced .sx-store-media-card .sanxio-home-product-card__title,
body.sx-store-advanced--mall-catalog .sca-grid--products .sanxio-home-product-card__title {
  padding: 8px 2px 0;
}

body.sx-store-advanced .sca-grid--products .sanxio-home-product-card__meta,
body.sx-store-advanced--mall-catalog .sca-grid--products .sanxio-home-product-card__meta {
  padding: 6px 2px 0;
}

body.sx-store-advanced .sca-grid--products .sanxio-home-product-card:hover,
body.sx-store-advanced .sx-store-media-card:hover,
body.sx-store-advanced--mall-catalog .sca-grid--products .sanxio-home-product-card:hover {
  border: none !important;
  box-shadow: none !important;
  transform: none;
  opacity: 0.92;
}

/* ---------- 档案页内容卡 ---------- */
body.sx-store-advanced--profile .sca-profile__hero,
body.sx-store-advanced--profile .sca-stat-card,
body.sx-store-advanced--profile .sca-info-card,
body.sx-store-advanced--profile .sca-verify-chip,
body.sx-store-advanced--profile .sca-profile__content,
body.sx-store-advanced--profile .sca-profile__empty {
  border: none !important;
  box-shadow: none !important;
}

body.sx-store-advanced--profile .sca-profile__hero,
body.sx-store-advanced--profile .sca-stat-card,
body.sx-store-advanced--profile .sca-info-card {
  background: var(--md3-color-surface, #fff);
  border-radius: var(--md3-shape-sm, 8px);
}

body.sx-store-advanced--profile .sca-profile__visual {
  border: none !important;
}

/* ---------- 联系页内容卡 ---------- */
body.sx-store-advanced--contact .sca-contact__dl.sca-dl,
body.sx-store-advanced--contact .sca-contact__dl,
body.sx-store-advanced--contact .sca-contact__map,
body.sx-store-advanced--contact .sca-contact__panel-card {
  border: none !important;
  box-shadow: none !important;
}

/* ---------- 频道 / 荣誉 / 资讯 ---------- */
body.sx-store-advanced--channel-list .sca-news-list,
body.sx-store-advanced--channel-list .sca-honor-card,
body.sx-store-advanced--channel-list .sca-honor-detail,
body.sx-store-advanced--channel-list .sca-honor-detail__meta,
body.sx-store-advanced--channel-list .sca-news-article,
body.sx-store-advanced--channel-list .sca-empty--catalog {
  border: none !important;
  box-shadow: none !important;
}

body.sx-store-advanced--channel-list .sca-honor-card {
  background: transparent;
  overflow: visible;
}

body.sx-store-advanced--channel-list .sca-honor-card__media,
body.sx-store-advanced--channel-list .sca-honor-detail__shot img {
  border: none !important;
  border-radius: var(--md3-shape-sm, 8px);
  overflow: hidden;
}

body.sx-store-advanced--channel-list .sca-news-list {
  background: transparent;
}

body.sx-store-advanced--channel-list .sca-news-list__item {
  border-bottom: 1px solid var(--md3-color-outline-variant, #c3c6cf);
}

body.sx-store-advanced--channel-list .sca-news-list__item:last-child {
  border-bottom: none;
}

/* ---------- 行卡堆叠（Feed 列表 / 资讯企业同款行） ---------- */
body.sx-store-advanced .sx-store-row-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sanxio-gap-sm, 8px);
  padding: 0 var(--sanxio-gap-sm, 8px) var(--sanxio-gap-sm, 8px);
  box-sizing: border-box;
}

body.sx-store-advanced .sx-store-row-card,
body.sx-store-advanced.sanxio-home-premium-page .sanxio-home-section-card--unified-list .sx-store-row-card {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  flex: none;
}

body.sx-store-advanced .sx-store-row-card .sx-home-company-card__link {
  min-height: 72px;
  height: auto;
  padding: var(--sanxio-gap-md, 12px);
  border: none !important;
  border-radius: var(--md3-shape-sm, 8px);
  background: var(--md3-color-surface, #fff) !important;
  box-shadow: none !important;
  text-decoration: none;
  color: inherit;
}

body.sx-store-advanced .sx-store-row-card .sx-home-company-card__area {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

body.sx-store-advanced .sx-store-row-card .sx-home-company-card__area-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: var(--md3-color-primary, #005fb8);
}

/* ---------- 旧 sca-card / 媒体 ---------- */
body.sx-store-advanced .sca-card {
  background: transparent;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  overflow: visible;
}

body.sx-store-advanced .sca-card:hover {
  border: none !important;
  box-shadow: none !important;
  transform: none;
}

body.sx-store-advanced .sca-card__media {
  border-radius: var(--md3-shape-sm, 8px);
  overflow: hidden;
}

body.sx-store-advanced .sca-card__title {
  margin: 8px 2px 0;
}

body.sx-store-advanced .sca-card__meta {
  padding: 6px 2px 0;
}

body.sx-store-advanced .sx-store-media-rail {
  display: flex;
  gap: var(--sanxio-gap-sm, 8px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

body.sx-store-advanced .sx-store-media-rail .sx-store-media-card {
  flex: 0 0 min(42vw, 160px);
  scroll-snap-align: start;
}

body.sx-store-advanced .sx-store-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sanxio-gap-sm, 8px);
}

@media (min-width: 768px) {
  body.sx-store-advanced .sx-store-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sanxio-gap-md, 12px);
  }
}

@media (min-width: 1024px) {
  body.sx-store-advanced .sx-store-media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/**
 * ======= sanxio store · 全店对齐首页无边框风格 end ===========
 */
