/* ===== 布局：杂志（Magazine）—— 大图推荐轮播 + 网格容器（卡片样式由 projects-grid-*.css 控制） ===== */

/* 轮播容器：固定高度 */
.pv-hero {
  position: relative;
  margin-bottom: 26px;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
}

.pv-hero-track {
  position: relative;
  height: 100%;
}

.pv-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.pv-hero-slide.pv-hero-active {
  opacity: 1;
  pointer-events: auto;
}

.pv-hero-slide .pv-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  border: 1px solid #eceef1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.pv-hero-slide .pv-card:hover {
  box-shadow: 0 12px 28px rgba(20, 24, 32, 0.09);
}

.pv-hero-slide .pv-img {
  flex: 0 0 46%;
  height: 100%;
  aspect-ratio: auto;
  background: #f0f2f5;
  overflow: hidden;
}

.pv-hero-slide .pv-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform 0.25s ease;
  background: #f0f2f5;
}
.pv-hero-slide .pv-card:hover .pv-img img { transform: scale(1.04); }

.pv-hero-slide .pv-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 28px 30px;
}

.pv-hero-slide .pv-main { display: flex; flex-direction: column; gap: 10px; }
.pv-hero-slide .pv-name { font-size: 22px; }
.pv-hero-slide .pv-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px;
}
.pv-hero-slide .pv-side {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f2f4f6;
  padding-top: 14px;
}

/* 轮播指示点 */
.pv-hero-dots {
  position: absolute;
  bottom: 14px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.pv-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pv-hero-dot:hover { transform: scale(1.2); }
.pv-hero-dot-active { background: #fff; }

/* 网格容器（卡片样式由 projects-grid-*.css 控制） */
.pv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

@media (max-width: 720px) {
  .pv-hero { height: auto; }
  .pv-hero-track { height: auto; }
  .pv-hero-slide .pv-card { flex-direction: column; height: auto; }
  .pv-hero-slide .pv-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .pv-hero-slide .pv-name { font-size: 18px; }
}
