/* ============================================================
   ACEVEL 项目案例页样式（品牌黑 #1f1f1f + 米色 #d1c5b0）
   列表页 + 详情页，响应式
   ============================================================ */

/* ---------- 图片占位（详情页空图） ---------- */
.pj-img-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1c5b0;
  font-size: 18px;
  letter-spacing: 0.3em;
}

/* ---------- 详情页 ---------- */
.pj-wrap {
  /* max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 90px; */
}

.pj-bread {
  color: #8a857c;
  font-size: 13px;
  margin-bottom: 26px;
}

.pj-bread a {
  color: #8a857c;
  text-decoration: none;
}

.pj-bread a:hover {
  color: #1f1f1f;
}

.pj-bread-cur {
  color: #1f1f1f;
}

/* ---- 头部（图1）：大图 + 左上角标签/标题 + 图下简介 ---- */
.pj-head {
  /* margin-bottom: 72px; */
}

.pj-hero-img {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #1f1f1f;
  overflow: hidden;
  /* margin-bottom: 30px; */
}

.pj-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 左上角叠加（大图存在时） */
.pj-head-overlay {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 72%;
  padding: 44px 48px;
  text-align: left;
  /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 72%); */
}

.pj-tags {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  gap: 16px;
  margin-bottom: 14px;
}

.pj-tag {
  display: inline-block;
  font-size: var(--banner-title-main-fs-p);
  letter-spacing: 2px;
  color: #fff;
  padding: 0;
}

.pj-head-overlay .pj-title {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pj-head-overlay .pj-title::before {
  content: "";
  flex: none;
  width: 35px;
  height: 2px;
  background: #fff;
}

.pj-title {
  color: #1f1f1f;
  font-size: var(--quote-title-fs-p);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

/* 无大图时：标签/标题独立居中 */
.pj-head-text {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 24px;
}

.pj-head-text .pj-tags {
  justify-content: center;
  margin-bottom: 18px;
}

.pj-head-text .pj-tag {
  /* color: #8a6d46; */
}

.pj-summary {
  color: #4a463f;
  font-size: 15px;
  line-height: 2;
  text-align: justify;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
}

/* ---- 交付板块（图2）：左图 + 右文，右上角理念链接 ---- */
.pj-deliver {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-gray);
  /* margin-bottom: 72px; */
}

.pj-deliver-img {
  overflow: hidden;
  background: #1f1f1f;
}

.pj-deliver-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

.pj-deliver-body {
  padding: 40px 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.pj-deliver-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.pj-deliver-title {
  color: #1f1f1f;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid #d1c5b0;
}

.pj-deliver-link {
  flex: none;
  color: #8a6d46;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
  position: absolute;
  right: 40px;
  top: 40px;
}

.pj-deliver-link:hover {
  color: #1f1f1f;
}

.pj-deliver-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pj-deliver-list li {
  position: relative;
  color: #4a463f;
  font-size: 15px;
  line-height: 2;
  padding-left: 18px;
  margin-bottom: 4px;
}

.pj-deliver-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1c5b0;
}

/* ---- 固定排版区（图3）：横图 + 两图 + 段落，可重复 ---- */
.pj-sec-block {
  /* margin-bottom: 72px; */
}

.pj-sec-wide {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: #1f1f1f;
  overflow: hidden;
  margin-bottom: 14px;
}

.pj-sec-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pj-sec-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  /* margin-bottom: 30px; */
}

.pj-sec-duo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.pj-sec-text {
  color: #4a463f;
  font-size: 15px;
  line-height: 2;
  text-align: justify;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0;
}

.pj-section {
  margin-top: 80px;
  margin-bottom: 40px;
}

.pj-section-title {
  color: #1f1f1f;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 3px solid #d1c5b0;
}

.pj-content {
  color: #4a463f;
  font-size: 15px;
  line-height: 2;
  max-width: 860px;
  margin: 0 auto;
}

.pj-content p {
  margin: 0 0 18px;
  text-align: justify;
}

.pj-album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pj-album img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.pj-related {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pj-rel-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8e2d6;
  transition: box-shadow 0.25s ease;
}

.pj-rel-card:hover {
  box-shadow: 0 8px 22px rgba(31, 31, 31, 0.1);
}

.pj-rel-img {
  aspect-ratio: 4 / 3;
  background: #1f1f1f;
  overflow: hidden;
}

.pj-rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pj-rel-title {
  color: #1f1f1f;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 新项目列表页（acevel.com风格） ---------- */
.project-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  min-height: 500px;
  overflow: hidden;
  margin-top: 70px;
}

.ph-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.ph-slide.active {
  opacity: 1;
}

.ph-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 80px 80px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
}

.ph-caption h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ph-caption p {
  font-size: 16px;
  opacity: 0.9;
}

.ph-dots {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.ph-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.ph-dot.active {
  background: #fff;
}

.project-philosophy {
  padding: 80px 0;
  background: #e8e0d0;
  text-align: center;
}

.project-philosophy h2 {
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.project-philosophy p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.project-grid-section {
  padding: 20px 20px;
  background: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pg-card {
  display: block;
  height: 320px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.pg-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pg-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.pg-card:hover .pg-bg {
  transform: scale(1.08);
}

.pg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
}

.pg-overlay h4 {
  font-size: 18px;
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

.pg-overlay h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.4s ease;
}

.pg-card:hover .pg-overlay h4::after {
  width: 100%;
}

/* 每5个一组：第5个占满整行（第3行全宽） */
.project-grid .pg-card:nth-child(5n) {
  grid-column: 1 / -1;
  height: 360px;
}

@media (max-width: 860px) {
  .project-philosophy {
    padding: 40px 20px;
  }

  .project-philosophy h2 {
    font-size: 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .pj-related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .project-philosophy .ph-closing {
    padding-top: 10px;
  }
}

/* ---------- 详情页移动端（860px 断点） ---------- */
@media (max-width: 860px) {
  .pj-wrap {
    /* padding: 20px 16px 60px; */
  }

  .pj-head {
    /* margin-bottom: 48px; */
  }

  .pj-hero-img {
    aspect-ratio: 4 / 3;
    /* margin-bottom: 20px; */
    height: 600px;
  }

  .pj-head-overlay {
    max-width: none;
    width: 100%;
    padding: 22px 24px;
    top: auto;
    bottom: 0px;
  }

  .pj-tags {
    gap: 12px;
    margin-bottom: 10px;
    justify-content: center;
  }

  .pj-tag {
    font-size: var(--banner-title-main-fs-m);
    letter-spacing: 1.5px;
  }

  .pj-title {
    font-size: var(--quote-title-fs-m);
    justify-content: center;
  }

  .pj-summary {
    font-size: 14px;
    padding: 20px;
  }

  .pj-deliver {
    grid-template-columns: 1fr;
    /* margin-bottom: 48px; */
  }

  .pj-deliver-img img {
    min-height: 220px;
  }

  .pj-deliver-body {
    padding: 20px;
  }

  .pj-deliver-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .pj-deliver-list li {
    font-size: 14px;
  }

  .pj-sec-block {
    /* margin-bottom: 48px; */
  }

  .pj-sec-wide {
    aspect-ratio: 4 / 3;
  }

  .pj-sec-duo {
    grid-template-columns: 1fr;
    gap: 10px;
    /* margin-bottom: 22px; */
  }

  .pj-sec-text {
    font-size: 14px;
    padding: 20px 0;
  }

  .pj-related {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .pj-rel-title {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    font-size: 13px;
    padding: 10px 12px;
  }

  .pj-head-overlay .pj-title::before {
    content: none;
  }

  .pj-deliver-link {
    display: none;
  }
}