/* ===== List Page Common ===== */
.list-grid {
  display: grid;
  gap: 20px;
}

.list-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.list-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Layout 1: 热门推荐 (Hot Recommendations) ===== */
/* 4 columns, pure image grid, images are 16:9 ratio */
.hot-list {
  grid-template-columns: repeat(4, 1fr);
}

.hot-list .list-item {
  aspect-ratio: 16 / 10;
  background-color: #e0e0e0;
}

/* ===== Layout 2: 新闻视界 (News Vision) ===== */
/* 4 columns grid for list page */
.news-list {
  grid-template-columns: repeat(4, 1fr);
}

/* 通用新闻卡片样式（列表页和首页共用） */
.news-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: auto;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  border: 2px solid transparent;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #c8a96e;
}

.news-card:hover .item-title {
  color: #c8a96e;
}

.news-card .item-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #e0e0e0;
}

.news-card .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .item-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #d4282f, #b81d24);
  border-radius: 3px;
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.news-card .item-badge::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid #fff;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.news-card .item-info {
  padding: 12px 14px 16px;
}

.news-card .item-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.news-card .item-title {
  font-size: 18px;
  color: #333;
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Layout 3: 影像中国 (Image China) ===== */
/* 4 columns, pure image with location overlay at bottom-left */
.china-list {
  grid-template-columns: repeat(4, 1fr);
}

.china-list .list-item {
  aspect-ratio: 16 / 10;
  background-color: #e0e0e0;
  border: 2px solid transparent;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}

.china-list .list-item:hover {
  border-color: #c8a96e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.china-list .list-item:hover .item-location {
  display: none;
}

/* hover时深色遮罩 */
.china-list .list-item:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3;
}

/* hover时居中标题浮层 */
.china-list .item-hover-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  padding: 20px;
  text-align: center;
}

.china-list .list-item:hover .item-hover-overlay {
  display: flex;
}

.china-list .item-hover-overlay .hover-title {
  font-size: 26px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.china-list .item-hover-overlay .hover-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.china-list .item-location {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  display: -webkit-box;
}

.china-list .item-location::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
  border-radius: 8px;
  margin-right: 5px;
}

/* Gradient overlay for text readability */
.china-list .list-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ===== Layout 4: 光影佳作 (Light & Shadow Masterpieces) ===== */
/* Justified gallery: same height per row, varying widths, calculated by JS */
.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  overflow: visible;
  padding: 4px 0;
}

.photo-list .list-item {
  flex-shrink: 0;
  background-color: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.photo-list .list-item:hover {
  transform: scale(1.2);
  z-index: 10;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* hover时底部金色标题条 */
.photo-list .item-title-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(200, 169, 110, 0.98),
    rgba(200, 169, 110, 0.88)
  );
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 14px;
  transform: translateY(100%);
  transition: transform 0.3s;
  z-index: 5;
}

.photo-list .list-item:hover .item-title-bar {
  transform: translateY(0);
}

.photo-list .list-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
