/* ============================================
   摄影主题 / 列表页专用样式
   作用：风光 / 生态 / 建筑 / 人文 / 人像 列表页统一卡片布局
============================================= */

/* ========== 1. 卡片网格容器 ========== */
/* 响应式网格布局：自动适配列数，最小宽度300px */
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;             /* 卡片间距 */
  max-width: 1400px;     /* 最大宽度限制 */
  margin: 0 auto;        /* 水平居中 */
}

/* ========== 2. 摄影作品卡片 ========== */
.place-card {
  background: var(--white-color);
  border-radius: 12px;   /* 圆角 */
  overflow: hidden;      /* 隐藏超出内容（保证图片圆角） */
  box-shadow: var(--shadow-sm); /* 默认浅阴影 */
  transition: var(--transition-base); /* hover过渡 */
  height: 100%;          /* 等高卡片 */
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  max-width: 100%;
}

/* 卡片悬浮动效：上移 + 加深阴影 */
.place-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ========== 3. 卡片左上角标签（待更新/作品名） ========== */
.card-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.5);       /* 半透明黑底 */
  backdrop-filter: blur(4px);          /* 背景模糊 */
  color: #fff;
  padding: 5px 11px;
  border-radius: 20px;                  /* 胶囊形状 */
  font-size: 12px;
  z-index: 2;                           /* 保证在图片上层 */
  letter-spacing: 0.3px;
}

/* ========== 4. 图片容器（固定3:2比例，保证所有图片统一高度） ========== */
/* 照片专用比例 3:2 → 计算方式：高度/宽度 = 2/3 ≈ 66.67% */
.place-img.photo-img {
  position: relative;
  width: 100%;
  padding-top: 66.67%;
  overflow: hidden;
}

/* 图片铺满容器 + 居中裁剪 */
.place-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                    /* 保持比例，裁剪超出部分 */
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* 放大动画 */
}

/* 卡片悬浮时图片轻微放大 */
.place-card:hover .place-img img {
  transform: scale(1.08);
}

/* ========== 5. 图片底部文字标题 ========== */
.place-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px 16px;
  /* 黑色渐变背景，提升文字可读性 */
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

/* ========== 6. 卡片下方信息区域 ========== */
.place-info {
  padding: 22px;           /* 内边距 */
  flex: 1;                 /* 撑满剩余高度 */
  display: flex;
  flex-direction: column;
}

/* 作品简介文字 */
.intro {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.7;        /* 行高，提升阅读体验 */
}

/* 按钮组容器 */
.btn-group {
  display: flex;
  gap: 10px;               /* 按钮间距 */
  margin-top: auto;        /* 自动推到底部 */
}

/* 查看作品按钮 */
.go-btn {
  flex: 1;                 /* 均分宽度 */
  padding: 9px 0;
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  transition: var(--transition-base);
}

/* 按钮悬浮效果 */
.go-btn:hover {
  background: #444;
  transform: translateY(-1px);
}

/* ========== 7. 顶部照片/视频切换导航 ========== */
.photo-video-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

/* 导航按钮样式 */
.photo-video-nav a {
  padding: 9px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 30px;     /* 圆角胶囊 */
  font-size: 14px;
  transition: var(--transition-base);
  letter-spacing: 0.3px;
}

/* 导航按钮悬浮 */
.photo-video-nav a:hover {
  background: #f8f8f8;
  border-color: #ccc;
  transform: translateY(-1px);
}

/* ========== 8. 模块标题（照片作品 / 视频作品） ========== */
.media-type-title {
  font-size: 24px;
  font-weight: 600;
  margin: 60px 0 30px;
  color: var(--primary-color);
  text-align: center;
  letter-spacing: 0.8px;
}

/* 第一个标题取消顶部外边距 */
.media-type-title:first-of-type {
  margin-top: 0;
}