/* ============================================================
   SEO 内链区块样式 — 2026-10-17
   配套 tools/seo-internal-links.cjs 与 tools/seo-product-images.cjs
   这些区块承载真实 <a> 实链与实拍图，是排名与转化的关键结构，
   不允许被隐藏或 display:none。

   宽度策略: 不写死 max-width，改为左右留白对齐站内现有 .container 的视觉宽度，
   避免在窄栏正文页里出现"图只占半屏"的割裂感。
   ============================================================ */

/* ---------- 首页核心产品实链 ---------- */
.seo-home {
  width: 100%;
  margin: 2.5rem auto;
  padding: 1.5rem clamp(24px, 5vw, 48px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.seo-home-h {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink, #1a1a1a);
}
.seo-home-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
}
.seo-home-list a {
  color: var(--brand, #b3271e);
  text-decoration: none;
  font-size: 0.95rem;
}
.seo-home-list a:hover { text-decoration: underline; }
.seo-home-all {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--ink-2, #555);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ---------- products.html 静态产品索引 ---------- */
.seo-index {
  width: 100%;
  margin: 3rem auto;
  padding: 2rem clamp(24px, 5vw, 48px);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
}
.seo-index-h {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
}
.seo-cat { margin-bottom: 2rem; }
.seo-cat-h {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--ink-2, #555);
}
.seo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.seo-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.seo-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.seo-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.seo-t {
  display: block;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- 产品页相关推荐 ---------- */
.seo-rel {
  width: 100%;
  margin: 2.5rem auto;
  padding: 1.5rem clamp(24px, 5vw, 48px) 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.seo-rel h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 1rem;
}
.seo-rel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.seo-rel a {
  font-size: 0.92rem;
  color: var(--ink-2, #444);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 1px;
}
.seo-rel a:hover { color: var(--brand, #b3271e); border-color: currentColor; }

/* ---------- 产品页实拍图组 ---------- */
.seo-gallery {
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 clamp(24px, 5vw, 48px);
}
.seo-gallery > figcaption {
  font-size: 0.82rem;
  color: var(--ink-3, #777);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}
.seo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.seo-shot { margin: 0; }
.seo-shot img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.seo-shot figcaption {
  font-size: 0.82rem;
  color: var(--ink-3, #777);
  margin-top: 0.45rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .seo-gallery-grid { grid-template-columns: 1fr; }
  .seo-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .seo-shot img { height: 190px; }
}