/* 媒体资源列表页 */

/* Banner（与资讯列表一致） */
.banner-wrap {
  position: relative;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff;
  text-align: center;
  padding: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.banner-overlay__en {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.banner-overlay__zh {
  font-size: clamp(12px, 2vw, 15px);
  opacity: 0.95;
  margin: 0;
  font-weight: 400;
}

.banner-arrow {
  z-index: 3;
}

/* 主内容区：标题 + 城市 + 装饰线 + 五图网格，总宽不超过 1250px */
.media-page {
  padding: 32px 0 0;
  text-align: center;
}

.media-wrap {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 56px;
  box-sizing: border-box;
}

.media-lead {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: #111;
}

.media-sub {
  margin: 0;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

/* 城市切换（纯展示，选中项下方红色标识） */
.media-cities {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px 20px;
}

/* 城市下方灰色装饰线：上移与 node 底部贴合 */
.media-cities-line {
  width: 100%;
  max-width: 850px;
  margin: -8px auto 24px;
  box-sizing: border-box;
}

.media-cities-line__track {
  display: block;
  width: 100%;
  height: 1px;
  background: #c9c9c9;
}

.media-city {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 40px;
  margin: 0;
}

.media-city__name {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.media-city.is-active .media-city__name {
  font-weight: 700;
  color: #000;
}

.media-city__node {
  width: 18px;
  height: auto;
  display: block;
  margin: 3px;
  line-height: 0;
  flex-shrink: 0;
}

/* 媒体网格（与 .media-wrap 同宽，上限 1250px） */
.media-grid {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 首块通栏 */
.media-card--tile {
  grid-column: 1 / -1;
  min-height: 260px;
}

a.media-card {
  text-decoration: none;
  color: inherit;
}

.media-card {
  position: relative;
  display: block;
  border-radius: 2px;
  overflow: hidden;
  min-height: 200px;
  background-color: #e8e8e8;
  transition: opacity 0.2s;
}

.media-card:hover {
  opacity: 0.94;
}

.media-card__img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.media-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 70%);
  pointer-events: none;
}

.media-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px 18px;
  z-index: 2;
  text-align: left;
}

.media-card__caption p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.media-card__more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .media-page {
    padding: 24px 0 0;
  }

  .media-wrap {
    padding: 0 16px 40px;
  }

  .media-lead {
    font-size: 18px;
  }

  .media-cities {
    gap: 10px 14px;
    margin: 20px 0 0;
  }

  .media-city__name {
    font-size: 13px;
  }

  .media-cities-line {
    margin-bottom: 18px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .media-card--tile {
    grid-column: 1;
    min-height: 200px;
  }

  .media-card {
    min-height: 180px;
  }

  .banner-arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .banner-arrow--prev {
    left: 6px;
  }

  .banner-arrow--next {
    right: 6px;
  }
}
