@charset "UTF-8";
/**
 * 莹虹商贸 - 商店页（/shop/）样式
 * 仅在 is_shop() / is_product_taxonomy() 时由 functions.php 加载。
 * 全部使用 yhsm-shop- 前缀，避免与父主题 woocommerce.css 现有规则冲突。
 * 不覆盖商品卡片网格（沿用 woocommerce.css 的 2 列布局）。
 * 配色沿用全站：主色 #0d1b2a，强调 #e63946，边框 #dee2e6，次要文字 #778da9。
 */

/* ==================== 面包屑 ==================== */
.yhsm-shop-crumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 12px;
  color: #778da9;
  line-height: 1.6;
}
.yhsm-shop-crumb a {
  color: #778da9;
  text-decoration: none;
}
.yhsm-shop-crumb a:hover {
  color: #e63946;
}
.yhsm-shop-crumb .sep {
  margin: 0 6px;
  color: #adb5bd;
}
.yhsm-shop-crumb .cur {
  color: #0d1b2a;
  font-weight: 600;
}

/* ==================== 顶部说明区 ==================== */
.yhsm-shop-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 20px 0;
}
.yhsm-shop-hero h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 10px;
  line-height: 1.35;
}
.yhsm-shop-hero p {
  font-size: 13px;
  line-height: 1.85;
  color: #495057;
  margin: 0 0 10px;
}
.yhsm-shop-hero p:last-child {
  margin-bottom: 0;
}
.yhsm-shop-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
}
.yhsm-shop-trust li {
  font-size: 12px;
  color: #0d1b2a;
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  padding: 5px 12px;
  line-height: 1.4;
}

/* ==================== 区块通用 ==================== */
.yhsm-shop-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 20px 0;
}
.yhsm-shop-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.yhsm-shop-h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0;
  line-height: 1.4;
}
.yhsm-shop-head-desc {
  font-size: 12px;
  color: #778da9;
}
.yhsm-shop-more {
  font-size: 12px;
  color: #e63946;
  text-decoration: none;
  white-space: nowrap;
}
.yhsm-shop-more:hover {
  text-decoration: underline;
}

/* ==================== 分类卡片矩阵 ==================== */
.yhsm-shop-catgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.yhsm-shop-cat {
  display: block;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 14px 12px;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.yhsm-shop-cat:hover {
  border-color: #e63946;
  box-shadow: 0 2px 10px rgba(13, 27, 42, .08);
  transform: translateY(-1px);
}
.yhsm-shop-cat-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0d1b2a;
  line-height: 1.4;
}
.yhsm-shop-cat-count {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #778da9;
}

/* ==================== 场景采购入口 ==================== */
.yhsm-shop-scene {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.yhsm-shop-scene-card {
  display: block;
  position: relative;
  background: #0d1b2a;
  border-radius: 8px;
  padding: 18px 16px;
  text-decoration: none;
  transition: background .2s ease;
}
.yhsm-shop-scene-card:hover {
  background: #16283c;
}
.yhsm-shop-scene-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.4;
}
.yhsm-shop-scene-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #c9d2dc;
  margin: 0;
}
.yhsm-shop-scene-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: #ffb3ba;
}

/* ==================== 结果条（服务 H1 之下的商品区标题） ==================== */
.yhsm-shop-resultbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.yhsm-shop-resultbar h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0;
}
.yhsm-shop-resultbar .num {
  font-size: 12px;
  color: #778da9;
}
.yhsm-shop-resultbar .num strong {
  color: #e63946;
}

/* ==================== 采购流程 ==================== */
.yhsm-shop-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: yhsmstep;
}
.yhsm-shop-step {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 14px 12px;
}
.yhsm-shop-step-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #e63946;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.yhsm-shop-step h3 {
  font-size: 13px;
  font-weight: 600;
  color: #0d1b2a;
  margin: 0 0 6px;
}
.yhsm-shop-step p {
  font-size: 12px;
  line-height: 1.7;
  color: #6c757d;
  margin: 0;
}

/* ==================== FAQ ==================== */
.yhsm-shop-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yhsm-shop-faq-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 14px;
}
.yhsm-shop-faq-item summary {
  font-size: 13px;
  font-weight: 600;
  color: #0d1b2a;
  cursor: pointer;
  list-style: none;
  line-height: 1.5;
}
.yhsm-shop-faq-item summary::-webkit-details-marker {
  display: none;
}
.yhsm-shop-faq-item summary::before {
  content: "＋";
  color: #e63946;
  margin-right: 8px;
  font-weight: 700;
}
.yhsm-shop-faq-item[open] summary::before {
  content: "－";
}
.yhsm-shop-faq-body {
  padding-top: 8px;
}
.yhsm-shop-faq-body p {
  font-size: 12px;
  line-height: 1.85;
  color: #495057;
  margin: 0;
}

/* ==================== 底部询价引导 ==================== */
.yhsm-shop-cta {
  max-width: 1280px;
  margin: 26px auto 0;
  padding: 0 20px;
}
.yhsm-shop-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 18px 20px;
}
.yhsm-shop-cta-txt h2 {
  font-size: 15px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 4px;
}
.yhsm-shop-cta-txt p {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
  line-height: 1.7;
}
.yhsm-shop-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.yhsm-shop-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.3;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.yhsm-shop-btn-primary {
  background: #e63946;
  color: #fff;
  border: 1px solid #e63946;
}
.yhsm-shop-btn-primary:hover {
  background: #c92f3c;
  border-color: #c92f3c;
  color: #fff;
}
.yhsm-shop-btn-ghost {
  background: #fff;
  color: #0d1b2a;
  border: 1px solid #0d1b2a;
}
.yhsm-shop-btn-ghost:hover {
  background: #0d1b2a;
  color: #fff;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .yhsm-shop-catgrid {
    grid-template-columns: repeat(3, 1fr);
  }
  .yhsm-shop-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .yhsm-shop-crumb {
    padding: 10px 12px 0;
    font-size: 11px;
  }
  .yhsm-shop-hero {
    padding: 2px 12px 0;
  }
  .yhsm-shop-hero h1 {
    font-size: 19px;
  }
  .yhsm-shop-hero p {
    font-size: 12px;
    line-height: 1.75;
  }
  .yhsm-shop-trust li {
    font-size: 11px;
    padding: 4px 10px;
  }
  .yhsm-shop-section {
    padding: 20px 12px 0;
  }
  .yhsm-shop-h2 {
    font-size: 16px;
  }
  .yhsm-shop-catgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .yhsm-shop-cat {
    padding: 11px 10px;
  }
  .yhsm-shop-scene {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .yhsm-shop-scene-card {
    padding: 14px 12px;
  }
  .yhsm-shop-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .yhsm-shop-resultbar h2 {
    font-size: 16px;
  }
  .yhsm-shop-cta {
    margin-top: 20px;
    padding: 0 12px;
  }
  .yhsm-shop-cta-inner {
    padding: 14px 12px;
  }
  .yhsm-shop-btn {
    font-size: 12px;
    padding: 8px 14px;
  }
}

@media (max-width: 480px) {
  .yhsm-shop-catgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .yhsm-shop-steps {
    grid-template-columns: 1fr;
  }
}
