/* 案例详情页专属样式 */

.case-detail-main {
  padding: 40px 0 48px;
  background: #f6f1ef;
}

.case-detail-title {
  font-family: "SourceHanSerifCN-Heavy", var(--serif);
  font-size: 32px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-align: left;
}

/* 白底内容面板：元信息 + 轮播 + 报价 */
.case-detail-panel {
  background: #fff;
  border: 1px solid #ebe6e0;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  padding: 28px 28px 24px;
  box-sizing: border-box;
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* justify-content: space-between; */
  gap: 16px 30px;
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "SourceHanSerifCN-Medium", var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: #a68e68;
}

.meta-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 1;
  /* 统一为金棕色 */
  filter: brightness(0) saturate(100%) invert(64%) sepia(18%) saturate(650%) hue-rotate(358deg) brightness(0.95);
}

.meta-item strong {
  font-family: "SourceHanSerifCN-SemiBold", var(--serif);
  font-weight: 600;
  color: #a68e68;
}

/* ---------- 轮播 ---------- */
.case-carousel {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
}

.case-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.case-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.case-carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.case-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.case-carousel-btn:hover {
  background: rgba(132, 7, 13, 0.9);
}

.case-carousel-btn.prev {
  left: 20px;
}

.case-carousel-btn.next {
  right: 20px;
}

.case-carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.case-carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.case-carousel-dots span.active,
.case-carousel-dots span:hover {
  background: #fff;
  transform: scale(1.15);
}

/* ---------- 报价条（详情） ---------- */
.case-detail-quote {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.case-detail-quote .quote-bar-label {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-size: 16px;
  font-weight: bold;
  color: #8b7355;
  white-space: nowrap;
  flex-shrink: 0;
}

.case-detail-quote .quote-form {
  flex: 1 1 0;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}

.case-detail-quote .form-field {
  font-family: "SourceHanSerifCN-Medium", var(--serif);
  font-weight: 500;
  height: 42px;
  background: #fff;
  border: 1px solid #ddd8d2;
  border-radius: 3px;
  padding: 0 12px;
  font-size: 13px;
  color: #333;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.case-detail-quote .btn-primary {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 100%;
  height: 42px;
  border-radius: 3px;
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-weight: bold;
  box-sizing: border-box;
}

/* ---------- 相关案例 ---------- */
.related-cases-section {
  padding: 48px 0 80px;
  background: #f6f1ef;
}

.related-cases-section .section-title {
  text-align: left;
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 36px;
}

.related-cases-section .section-title::after {
  margin-left: 0;
  width: 36px;
  height: 3px;
  margin-top: 28px;
}

.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 378px);
  justify-content: space-between;
  row-gap: 28px;
}

.related-cases-grid .case-card {
  width: 378px;
  height: 353px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: none;
  transition: box-shadow 0.3s ease;
}

.related-cases-grid .case-card:hover {
  transform: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.related-cases-grid .case-card-img {
  width: 378px;
  height: 240px;
  aspect-ratio: auto;
  overflow: hidden;
}

.related-cases-grid .case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-cases-grid .case-card:hover .case-card-img img {
  transform: scale(1.04);
}

.related-cases-grid .case-card-body {
  height: 113px;
  box-sizing: border-box;
  padding: 16px 18px 14px;
  background: #fff;
}

.related-cases-grid .case-card-title {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-weight: bold;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.related-cases-grid .case-card:hover .case-card-title {
  color: #84070d;
}

.related-cases-grid .case-card-addr,
.related-cases-grid .case-card-tags {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-SemiBold", var(--serif);
  font-weight: 600;
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
  line-height: 1.5;
}

.related-cases-grid .case-card-tags {
  margin-bottom: 0;
}

/* 面包屑 */
.breadcrumb {
  font-family: "SourceHanSerifCN-Medium", var(--serif);
  font-weight: 500;
}
