/* 主容器 */
.bg-333 {
  background: #f0f1f5;
}
.flex-half_container {
  display: flex;
  flex-direction: row;
  gap: 0.9375rem;
  max-width: 75rem;
  margin: 0 auto;
  align-items: stretch;
}

.flex-half_container .flex-1 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.flex-half_container .flex-row {
  display: flex;
  flex-direction: row;
  gap: 0.9375rem;
}

.flex-half_container .flex-column {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  height: auto;
}

/* 标题样式 */
.flex-half_container .title {
  font-weight: 700;
  font-size: 1.125rem;
  height: 2.75rem;
  line-height: 2.75rem;
  color: #1a1a1a;
  border-bottom: 0.125rem solid #e8e8e8;
  position: relative;
  margin-bottom: 0.625rem;
  flex-shrink: 0;
}

.flex-half_container .title::after {
  content: "";
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 4.375rem;
  height: 0.125rem;
  background: #1677ff;
}

/* 图片基础样式 */
.flex-half_container img {
  width: 100%;
  display: block;
  border-radius: 0.5rem;
  background: #f5f5f5;
}

/* 统一卡片样式 */
.card-box {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.625rem 0.625rem 0;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: all 0.3s ease;
}

.card-box:hover {
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.125rem);
}

/* 卡片内部横向排列 */
.card-box .flex-row {
  flex: 1;
  align-items: stretch;
  min-height: 0;
}

/* 链接卡片 - 包含图片和标题 */
.link-card {
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.link-card:hover {
  transform: translateY(-0.125rem);
}

.link-card img {
  flex: 1;
  min-height: 0;
  object-fit: cover;

  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
  height: auto;
  transition: transform 0.3s ease;
}

.link-card:hover img {
  transform: scale(1.02);
}

/* 文字标签 */
.brand-item-label {
  font-size: 1rem;
  color: #000;
  line-height: 3.125rem;
  height: 3.125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-card:hover .brand-item-label {
  color: #1677ff;
}

/* 响应式 */
@media (max-width: 768px) {
  .flex-half_container {
    flex-direction: column;
  }

  .flex-half_container .flex-row {
    flex-direction: column;
  }
}