﻿
/* 子栏目左右分栏布局 */
.subcategory-block {
  margin-top: 80px;
  padding: 40px 0;
  border-top: none;
  position: relative;
  z-index: 0;
}
.subcategory-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  bottom: 0;
  z-index: -1;
  background: inherit;
}
.subcategory-block:first-child {
  margin-top: 0;
}

.subcategory-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* 左侧视觉区 */
.subcategory-visual {
  flex: 0 0 50%;
  max-width: 50%;
}

.showcase-frame {
  position: relative;
  padding: 20px;
  background: #FAFAF8;
  border-radius: 4px;
}

/* 红色边框四角 */
.frame-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #C0392B;
  border-style: solid;
  border-width: 0;
}
.frame-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.frame-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.frame-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.frame-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* 蓝色规格标签 */
.showcase-label {
  position: absolute;
  top: -14px;
  right: 24px;
  z-index: 2;
}
.label-badge {
  display: inline-block;
  background: #1A5276;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 2px;
}

/* 产品网格 */
.subproducts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.subproduct-card {
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  background: #FAFAF8;
  border-radius: 4px;
  overflow: hidden;
}

.subproduct-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #FAFAF8;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.subproduct-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.subproduct-info {
  background: #FFFFFF;
  padding: 6px 0 8px;
  text-align: center;
}

.subproduct-info h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #333;
  margin: 0;
}

/* 右侧内容 */
.subcategory-content {
  flex: 0 0 50%;
  padding-top: 0;
}

.subcategory-name {
  font-size: 1.5rem;
  color: #B8944C;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  font-weight: 600;
}

.subcategory-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #4A4A4A;
  margin-bottom: 28px;
  max-width: none;
}

.subcategory-cta {
  display: inline-block;
  font-size: 1rem;
  color: #B8944C;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #B8944C;
  padding-bottom: 4px;
}
.subcategory-cta:hover {
  color: #8B6B3D;
  border-color: #8B6B3D;
}

/* 响应式：768px以下单列堆叠 */
@media (max-width: 768px) {
  .subcategory-layout {
    flex-direction: column;
    gap: 24px;
  }
  .subcategory-visual {
    flex: none;
    max-width: 100%;
  }
  .showcase-frame {
    padding: 24px;
  }
  .subcategory-content {
    flex: none;
    max-width: 100%;
    padding-top: 0;
  }
}

.subcategory-block:nth-child(odd)  { background: #FFFFFF; }
.subcategory-block:nth-child(even) { background: #F8F8F7; }
