/* 产品栏目：产品中心、分类页、产品页 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cat-card:hover { border-color: #d7cfc8; box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card figure { margin: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.cat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-card-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--brand-strong);
}
.cat-card h2, .cat-card h3 { margin: 0; font-size: 1.12rem; }
.cat-card p { margin: 0; font-size: 13.8px; color: var(--muted); }
.cat-card .arrow-link { margin-top: auto; font-size: 13.5px; }
.cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: start;
  padding: 32px 0 8px;
}
.product-hero h1 { max-width: 22ch; }
.product-hero .lead { margin-top: 16px; font-size: 1.05rem; }
.product-figure {
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--surface);
  align-self: start;
  max-width: 460px;
  justify-self: end;
}
.product-figure img { width: 100%; height: auto; max-height: 460px; object-fit: contain; background: var(--surface); }
.product-figure figcaption {
  padding: 10px 2px 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.spec-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--brand);
}

.detail-copy { padding: 30px 0 0; max-width: 62ch; }
.detail-copy p { color: #4a3f37; font-size: 15.5px; line-height: 1.75; }

.series-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sibling-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sibling {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .18s ease, background .18s ease;
}
.sibling:hover { border-color: var(--brand); background: var(--brand-soft); }
.sibling strong { font-size: 14.5px; font-weight: 600; }
.sibling span { font-size: 13px; color: var(--muted); }

.subcat-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.subcat-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease, padding-left .2s ease;
}
.subcat-item:hover { background: var(--surface); padding-left: 12px; }
.subcat-item h3 { margin: 0 0 4px; font-size: 1.04rem; }
.subcat-item p { margin: 0; font-size: 13.8px; color: var(--muted); }
.subcat-item .list-arrow { color: var(--muted); font-family: var(--font-mono); }
.subcat-item:hover .list-arrow { color: var(--brand-strong); }

@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sibling-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .product-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .product-hero h1 { max-width: none; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .sibling-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 产品实拍图墙（如提花织嘪样品） */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.product-gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); }
.product-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}
.product-gallery figure:hover { border-color: var(--brand); }
@media (max-width: 900px) { .product-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 560px) { .product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* 后加工方式清单 */
.fold-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 40px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.fold-list li {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fold-list strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.fold-list span { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) {
  .fold-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 560px) {
  .fold-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; }
}

/* 图墙大图查看 */
body.lightbox-open { overflow: hidden; }
.product-gallery img { cursor: zoom-in; }
.product-gallery img:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 14, 11, .9);
  padding: 48px 64px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.lightbox-btn {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox-btn:hover { background: var(--brand); border-color: var(--brand); }
.lightbox-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 14px; top: 50%; margin-top: -22px; }
.lightbox-next { right: 14px; top: 50%; margin-top: -22px; }
@media (max-width: 560px) {
  .lightbox { padding: 56px 12px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* 后加工 / 摺法说明 */
.fold-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.fold-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 20px 22px;
  transition: border-color .2s ease, background .2s ease;
}
.fold-card:hover { border-color: var(--brand); background: #fff; }
.fold-card svg { width: 100%; max-width: 168px; height: auto; display: block; margin-bottom: 14px; }
.fold-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 6px;
}
.fold-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) { .fold-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 560px) { .fold-grid { grid-template-columns: minmax(0, 1fr); } }
