/* ========================================
   俊骅物流与产能组件
======================================== */

.junhua-logistics-pictext-section {
  background-color: var(--bg-color-light);
  padding: 4rem 0;
}

.junhua-logistics-pictext-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-5xl);
}

/* ========================================
   标题区域
======================================== */

.junhua-logistics-pictext-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2xl);
}

.junhua-logistics-pictext-title {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h2);
  line-height: 1.15;
  text-align: center;
  color: var(--text-color-strong);
  margin: 0;
}

.junhua-logistics-pictext-title-highlight {
  color: var(--primary-color);
}

.junhua-logistics-pictext-subtitle {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h5);
  line-height: 1.15;
  text-align: center;
  color: var(--text-color-strong);
  margin: 0;
}

/* ========================================
   内容区域
======================================== */

.junhua-logistics-pictext-content {
  /* display: grid; */
  /* grid-template-columns: repeat(8, 1fr); */
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  gap: 0;
  width: 100%;
  /* flex-wrap: wrap; */
}

/* ========================================
   卡片通用样式
======================================== */

.junhua-logistics-pictext-card {
  position: relative;
  width: 12.5%;
  height: 29.3rem;
  display: flex;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.3s ease;
  flex-shrink: 0;
  /* transform: scaleX(0); */
}

.junhua-logistics-pictext-card::after {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0px;
  top: 0px;
  height: 100%;
  width: 100%;
  background-color: #000;
  opacity: 0.6;
  transition: all 0.3s;
}

.junhua-logistics-pictext-card.active {
  /* grid-column: span 5; */
  width: 62.5%;
  position: relative;
}

.junhua-logistics-pictext-card.active
  .junhua-logistics-pictext-card-small_title {
  display: none;
}

.junhua-logistics-pictext-card.active::after {
  opacity: 0;
}

/* ========================================
   复杂卡片（带列表）
======================================== */

.junhua-logistics-pictext-card-small_title {
  transform-origin: top left;
  transform: rotate(90deg) translate(10px, 10px);
  display: inline-block;
  width: max-content;
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 700;
  position: absolute;
  z-index: 10;
  top: 0px;
  left: 100%;
}

.junhua-logistics-pictext-card-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.junhua-logistics-pictext-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.junhua-logistics-pictext-card-content {
  position: absolute;
  bottom: 0px;
  transform: translateY(100%);
  left: 0px;
  width: 100%;
  min-height: 25%;
  background: linear-gradient(
    180deg,
    rgba(55, 148, 135, 0.8) 0%,
    rgba(55, 148, 135, 1) 83.86%
  );
  padding: var(--spacing-4xl);
  transition: all 0.3s ease;
}

.junhua-logistics-pictext-card.active .junhua-logistics-pictext-card-content {
  transform: translateY(0);
}

.junhua-logistics-pictext-card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 10px;
}

.junhua-logistics-pictext-card-title {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h4);
  line-height: 1.4;
  color: var(--text-color-white);
  margin: 0;
}

.junhua-logistics-pictext-card-richtext,
.junhua-logistics-pictext-card-richtext * {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-small);
  line-height: 1.15;
  color: var(--text-color-white);
}

.junhua-logistics-pictext-card-richtext p {
  margin: 0 0 0.5rem 0;
}

.junhua-logistics-pictext-card-richtext p:last-child {
  margin-bottom: 0;
}

.junhua-logistics-pictext-card-richtext ul,
.junhua-logistics-pictext-card-richtext ol {
  margin: 0;
  padding-left: 1em;
  list-style-position: outside;
}

.junhua-logistics-pictext-card-richtext ul {
  list-style-type: disc;
}
.junhua-logistics-pictext-card-richtext ol {
  list-style-type: decimal;
}

.junhua-logistics-pictext-card-richtext li {
  margin-bottom: 0.5rem;
  line-height: 1.15;
  position: relative;
}

.junhua-logistics-pictext-card-richtext li:last-child {
  margin-bottom: 0;
}

.junhua-logistics-pictext-card-richtext em {
  font-style: italic;
}

@media screen and (max-width: 576px) {
  .junhua-logistics-pictext-card-small_title {
    display: none !important;
  }
  .junhua-logistics-pictext-content {
    flex-wrap: wrap;
  }
  .junhua-logistics-pictext-card {
    width: 100% !important;
    height: auto;
    /* aspect-ratio: 16 / 9; */
    aspect-ratio: 1;
  }
  .junhua-logistics-pictext-card::after {
    display: none;
  }
  .junhua-logistics-pictext-card-content {
    transform: translateY(0);
  }
}
