/* 案例列表 + 详情 样式 */

/* 页面横幅 */
.sub-banner {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3264 / 608;
  min-height: 240px;
  max-height: 380px;
  margin-top: 80px;
  margin-top: var(--header-height);
  overflow: hidden;
  background: #2a1d0e;
}

.sub-banner .bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
}

.sub-banner .content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  z-index: 2;
}

.sub-banner h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 6px;
  margin-bottom: 8px;
}

.sub-banner .en {
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--color-primary-light);
  text-transform: uppercase;
}

/* ===== 案例列表 ===== */
.project-list-section {
  padding: 48px 0 80px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.project-card {
  position: relative;
  display: block;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(90, 67, 33, 0.12);
}

.project-card .img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0ede8;
}

.project-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .img-wrap img {
  transform: scale(1.05);
}

.project-card .info {
  padding: 18px 20px 20px;
}

.project-card .tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(138, 106, 58, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.project-card .title {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 52px;
}

.project-card .meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.project-card .meta .dot {
  margin: 0 6px;
}

/* ===== 案例详情 ===== */
.project-detail {
  padding: 40px 0 80px;
}

.detail-head {
  text-align: center;
  margin-bottom: 36px;
}

.detail-head h1 {
  font-size: 30px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  line-height: 1.5;
}

.detail-head .meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-head .chip {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--color-text-light);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.detail-head .chip:first-child {
  color: var(--color-primary);
  background: rgba(138, 106, 58, 0.1);
  border-color: transparent;
}

.detail-cover {
  margin-bottom: 40px;
}

.detail-cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 4px;
}

.detail-body {
  max-width: 880px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 2.1;
  color: var(--color-text-light);
}

.detail-body .lead {
  font-size: 16px;
  color: var(--color-text);
  text-indent: 0;
  padding: 18px 22px;
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-primary);
  line-height: 2;
}

.detail-body h3 {
  font-size: 20px;
  color: var(--color-text);
  margin: 34px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.detail-body p {
  margin-bottom: 16px;
  text-indent: 2em;
  text-align: justify;
}

/* ===== 项目影像相册 ===== */
.gallery-wrap {
  max-width: 1080px;
  margin: 56px auto 0;
}

.gallery-title {
  font-size: 20px;
  color: var(--color-text);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}

.gallery-title span {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  font-weight: 400;
}

.project-gallery {
  columns: 2;
  column-gap: 20px;
}

.pg-item {
  margin: 0 0 20px;
  break-inside: avoid;
}

.pg-item img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: block;
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  max-width: 880px;
  margin: 60px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.detail-nav a {
  font-size: 14px;
  color: var(--color-text-light);
}

.detail-nav a:hover {
  color: var(--color-primary);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .sub-banner {
    height: clamp(300px, 62vw, 520px);
    max-height: none;
  }

  .sub-banner .bg {
    background-position: center;
  }

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

  .sub-banner h1 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .sub-banner {
    height: clamp(280px, 72vw, 360px);
  }

  .sub-banner .bg {
    background-position: center;
  }

  .sub-banner h1 {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .sub-banner .en {
    font-size: 12px;
    letter-spacing: 4px;
  }

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

  .project-card .title {
    min-height: auto;
  }

  .detail-head h1 {
    font-size: 24px;
  }

  .project-gallery {
    columns: 1;
  }
}
