/**
 * 移动端图片布局样式
 * 实现一行显示两张图片的布局
 */

/* 11.5 优化：移动端图片布局样式 */
.mobile-image-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.mobile-image-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.mobile-image-item {
  flex: 1;
  width: calc(50% - 4px);
  max-width: calc(50% - 4px);
}

/* 移动端图片优化 */
.mobile-image-item .rec-item {
  width: 100%;
  margin-bottom: 0;
}

.mobile-image-item .rec-thumb {
  width: 100%;
  height: auto;
}

.mobile-image-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 移动端图片尺寸优化 */
.mobile-optimized {
  max-width: 100%;
  height: auto;
}

/* 移动端卡片内容调整 */
.mobile-image-item .rec-info {
  padding: 8px;
}

.mobile-image-item .rec-title {
  font-size: 0.9rem;
  line-height: 1.2;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-image-item .rec-desc {
  font-size: 0.8rem;
  line-height: 1.2;
  display: none; /* 在移动端隐藏描述，节省空间 */
}

.mobile-image-item .rec-foot {
  font-size: 0.75rem;
  margin-top: 4px;
}

/* 移动端缩略图标题调整 */
.mobile-image-item .rec-thumb-caption {
  font-size: 0.8rem;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 在小屏幕设备上进一步优化 */
@media (max-width: 480px) {
  .mobile-image-row {
    gap: 6px;
  }

  .mobile-image-item {
    width: calc(50% - 3px);
    max-width: calc(50% - 3px);
  }

  .mobile-image-item .rec-title {
    font-size: 0.85rem;
  }

  .mobile-image-item .rec-foot {
    font-size: 0.7rem;
  }
}

/* 在极小屏幕设备上（如iPhone SE）保持单列布局 */
@media (max-width: 360px) {
  .mobile-image-row {
    flex-direction: column;
  }

  .mobile-image-item {
    width: 100%;
    max-width: 100%;
  }
}
