/* Tags 聚合页（tags.html）。留言表单样式沿用 contacts.css，这里只写本页独有的部分 */
.zs-home-main {
  position: relative;
  overflow-x: hidden;
}

/* 头部是 fixed，本页没有横幅，主体整体下移一个头部高度 */
.zs-tags-page {
  padding-top: var(--zs-header-height);
}

/* 本页主体内容统一收窄到 1260px（小屏仍按 --zs-container 留出左右边距） */
.zs-tags-page .zs-wz {
  max-width: 1260px;
}

/* ===== 面包屑 + H1 + 简介 ===== */
.zs-tags-hero {
  padding: 24px 0 8px;
}

.zs-tags-breadcrumb {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--zs-color-border);
}

.zs-tags-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--zs-color-text-soft);
}

.zs-tags-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

/* 分隔符：细线右箭头 */
.zs-tags-breadcrumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 12px 0 8px;
  border-top: 1px solid rgba(17, 17, 17, 0.35);
  border-right: 1px solid rgba(17, 17, 17, 0.35);
  transform: rotate(45deg);
}

.zs-tags-breadcrumb a {
  color: var(--zs-color-text-soft);
  transition: color 0.25s var(--zs-ease);
}

.zs-tags-breadcrumb a:hover,
.zs-tags-breadcrumb a:focus-visible {
  color: var(--zs-color-primary);
}

.zs-tags-breadcrumb li[aria-current="page"] {
  font-weight: 600;
  color: var(--zs-color-text);
}

.zs-tags-title {
  position: relative;
  margin: 32px 0 0;
  padding-bottom: 20px;
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--zs-color-text);
}

/* 标题下方的品牌红短线 */
.zs-tags-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--zs-color-primary);
}

.zs-tags-intro {
  margin-top: 24px;
  padding: 24px 32px;
  border-left: 3px solid var(--zs-color-primary);
  background: var(--zs-color-surface-strong);
  font-size: 16px;
  line-height: 1.8;
  color: #444444;
}

.zs-tags-intro p {
  margin: 0 0 12px;
}

.zs-tags-intro > :last-child {
  margin-bottom: 0;
}

.zs-tags-intro a {
  color: var(--zs-color-primary);
}

/* ===== 通用区块与标题 ===== */
.zs-tags-section {
  padding: 48px 0 0;
}

.zs-tags-heading {
  position: relative;
  margin: 0 0 24px;
  padding-left: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--zs-color-text);
}

.zs-tags-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  background: var(--zs-color-primary);
}

/* ===== 产品卡片：Related Products 第 1 个占 2×2，其余按网格排列 ===== */
.zs-tags-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.zs-tags-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--zs-color-border);
  background: #ffffff;
  transition:
    transform 0.3s var(--zs-ease),
    box-shadow 0.3s var(--zs-ease),
    border-color 0.3s var(--zs-ease);
}

.zs-tags-product:hover,
.zs-tags-product:focus-within {
  transform: translateY(-4px);
  border-color: rgba(230, 0, 18, 0.24);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

.zs-tags-product-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f9fafc;
  overflow: hidden;
}

.zs-tags-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--zs-ease);
}

.zs-tags-product:hover .zs-tags-product-media img {
  transform: scale(1.04);
}

.zs-tags-product-copy {
  padding-top: 14px;
}

.zs-tags-product-copy h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 2.8em;
  overflow: hidden;
}

.zs-tags-product-copy h3 a {
  color: var(--zs-color-text);
  transition: color 0.25s var(--zs-ease);
}

.zs-tags-product-copy h3 a:hover,
.zs-tags-product-copy h3 a:focus-visible {
  color: var(--zs-color-primary);
}

.zs-tags-product--feature {
  grid-column: span 2;
  grid-row: span 2;
  padding: 16px;
}

.zs-tags-product--feature .zs-tags-product-media {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 280px;
}

.zs-tags-product--feature .zs-tags-product-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.zs-tags-product--feature .zs-tags-product-copy h3 {
  min-height: 0;
  font-size: 20px;
}

.zs-tags-product-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 24px;
  background: var(--zs-color-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  transition: background 0.25s var(--zs-ease);
}

.zs-tags-product-more:hover,
.zs-tags-product-more:focus-visible {
  background: #c40010;
  color: #ffffff;
}

/* ===== 广告横幅 ===== */
.zs-tags-ad {
  padding: 48px 0 0;
}

.zs-tags-ad img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Related Blog / Reviews 标签页 ===== */
.zs-tags-tablist {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--zs-color-primary);
}

.zs-tags-tab {
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  background: var(--zs-color-surface-strong);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--zs-color-text);
  cursor: pointer;
  transition:
    background 0.25s var(--zs-ease),
    color 0.25s var(--zs-ease);
}

.zs-tags-tab:hover {
  color: var(--zs-color-primary);
}

.zs-tags-tab.is-active {
  background: var(--zs-color-primary);
  color: #ffffff;
}

.zs-tags-tab:focus-visible {
  outline: 2px solid var(--zs-color-text);
  outline-offset: 2px;
}

.zs-tags-panel {
  padding-top: 24px;
}

.zs-tags-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zs-tags-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--zs-color-border);
  background: #ffffff;
  transition:
    border-color 0.25s var(--zs-ease),
    box-shadow 0.25s var(--zs-ease);
}

.zs-tags-card:hover,
.zs-tags-card:focus-within {
  border-color: rgba(230, 0, 18, 0.24);
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.06);
}

.zs-tags-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.zs-tags-card h3 a {
  color: var(--zs-color-text);
  transition: color 0.25s var(--zs-ease);
}

.zs-tags-card h3 a:hover,
.zs-tags-card h3 a:focus-visible {
  color: var(--zs-color-primary);
}

.zs-tags-card p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--zs-color-text-soft);
}

/* 新闻摘要截取的字数多于 3 行，超出部分以省略号结束，避免停在半个单词上 */
.zs-tags-blog-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.zs-tags-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.zs-tags-card .zs-tags-review-head {
  margin-top: 0;
}

.zs-tags-review-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--zs-color-text);
}

.zs-tags-review-head time {
  font-size: 14px;
  color: var(--zs-color-text-soft);
}

.zs-tags-card .zs-tags-review-stars {
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
  color: #f5a623;
}

/* ===== related search ===== */
.zs-tags-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zs-tags-search-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #ffffff;
  font-size: 15px;
  line-height: 1.4;
  color: var(--zs-color-text);
  transition:
    border-color 0.25s var(--zs-ease),
    color 0.25s var(--zs-ease);
}

.zs-tags-search-list a:hover,
.zs-tags-search-list a:focus-visible {
  border-color: var(--zs-color-primary);
  color: var(--zs-color-primary);
}

/* 留言表单区块与上方内容的间距（表单本身样式来自 contacts.css） */
.zs-tags-page .zs-product-contact-section {
  padding-top: 64px;
}

/* ===== 响应式 ===== */
@media (max-width: 1199px) {
  .zs-tags-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .zs-tags-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .zs-tags-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zs-tags-product--feature {
    grid-column: span 3;
    grid-row: auto;
  }

  .zs-tags-product--feature .zs-tags-product-media {
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .zs-tags-hero {
    padding-top: 16px;
  }

  .zs-tags-breadcrumb {
    padding-bottom: 12px;
  }

  .zs-tags-title {
    margin-top: 24px;
    padding-bottom: 16px;
    font-size: 26px;
  }

  .zs-tags-intro {
    margin-top: 20px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.7;
  }

  .zs-tags-section,
  .zs-tags-ad {
    padding-top: 40px;
  }

  .zs-tags-heading {
    margin-bottom: 18px;
    font-size: 22px;
  }

  .zs-tags-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .zs-tags-product {
    padding: 8px;
  }

  .zs-tags-product--feature {
    grid-column: span 2;
    padding: 12px;
  }

  .zs-tags-product--feature .zs-tags-product-media {
    aspect-ratio: 4 / 3;
  }

  .zs-tags-product--feature .zs-tags-product-copy {
    flex-direction: column;
    align-items: stretch;
  }

  .zs-tags-product--feature .zs-tags-product-copy h3 {
    font-size: 17px;
  }

  .zs-tags-product-copy h3 {
    font-size: 14px;
  }

  .zs-tags-tab {
    flex: 1 1 0;
    padding: 0 12px;
    font-size: 16px;
  }

  .zs-tags-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .zs-tags-card {
    padding: 20px;
  }

  .zs-tags-search-list {
    gap: 8px;
  }

  .zs-tags-search-list a {
    padding: 0 16px;
    font-size: 14px;
  }

  .zs-tags-page .zs-product-contact-section {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zs-tags-product,
  .zs-tags-product-media img,
  .zs-tags-card,
  .zs-tags-tab,
  .zs-tags-search-list a,
  .zs-tags-product-more,
  .zs-tags-breadcrumb a {
    transition: none;
  }

  .zs-tags-product:hover,
  .zs-tags-product:focus-within,
  .zs-tags-product:hover .zs-tags-product-media img {
    transform: none;
  }
}
