/* ==========================================================================
   LIUTONG FOUNTAIN - Projects Page Styles (完整终极版)
   ========================================================================== */

/* ---------- 分类导航 (Category Navigation) ---------- */
.proj-breadcrumb-wrap {
  background: var(--bg-0, #0a1628);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.proj-cat-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.cat-link {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.cat-link:hover {
  color: #ffffff;
}

.cat-link.active {
  color: var(--brand-3, #0088ff);
  font-weight: 600;
}

.cat-divider {
  display: inline-block;
  margin: 0 16px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

/* ---------- 项目卡片网格 (Project Cards Grid) ---------- */
.proj-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.proj-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}

.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.proj-card-media {
  overflow: hidden;
  height: 260px;
}

.proj-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.proj-card:hover .proj-card-media img {
  transform: scale(1.05);
}

.proj-card-body {
  padding: 24px;
  position: relative;
}

.proj-card-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-3, #0088ff);
  margin-bottom: 10px;
}

.proj-card-location svg {
  flex-shrink: 0;
}

.proj-card-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: var(--brand);
  line-height: 1.35;
  padding-right: 40px;
}

.proj-card-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-3, #0088ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.proj-card-arrow svg {
  width: 18px;
  height: 18px;
}

.proj-card:hover .proj-card-arrow {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.4);
}

/* ---------- 分页 (Pagination) ---------- */
.proj-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pg-item {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.pg-item:hover {
  border-color: var(--brand-3, #0088ff);
  color: var(--brand-3, #0088ff);
}

.pg-item.active {
  background: var(--brand-3, #0088ff) !important;
  color: #fff !important;
  border-color: var(--brand-3, #0088ff) !important;
}

/* ---------- 客户评价板块 (Testimonial Block) ---------- */
 /* ---------- 客户评价板块 (Testimonial Block) ---------- */
/* 删除了强制深色背景的代码，恢复 HTML 中原有的 bg-alt 浅色背景 */

.testimonial-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

/* 左上角巨大引号 - 改为浅色背景适用的淡蓝色 */
.testimonial-block::before {
  content: '“';
  font-family: 'Playfair Display', serif;
  font-size: 200px;
  line-height: 1;
  color: rgba(0, 136, 255, 0.1); 
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 0;
}

/* 右下角巨大引号 - 改为浅色背景适用的淡蓝色 */
.testimonial-block::after {
  content: '”';
  font-family: 'Playfair Display', serif;
  font-size: 200px;
  line-height: 1;
  color: rgba(0, 136, 255, 0.1);
  position: absolute;
  bottom: -60px;
  right: 0;
  z-index: 0;
}

.testimonial-carousel {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
  scroll-behavior: smooth;
  position: relative;
  z-index: 1; 
}

.testimonial-carousel::-webkit-scrollbar {
  display: none; 
}

.testimonial-track {
  display: flex;
  width: max-content;
}

.testimonial-slide {
  width: 900px; 
  max-width: 100vw;
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 0 40px; 
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 评价文字 - 恢复为深色 */
.testimonial-text {
  font-size: 24px; 
  line-height: 1.6;
  color: var(--text, #1e293b); 
  font-style: normal; 
  font-weight: 300;
  margin: 0 0 40px;
  border: none;
  padding: 0;
  white-space: normal;
  text-align: center;
}

.testimonial-author {
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* 分割线恢复为深色半透明 */
  padding-top: 24px;
  width: 50%; 
}

/* 客户姓名 - 恢复为深色 */
.testimonial-name {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--brand, #0a1628); 
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 客户职位 - 恢复为灰色 */
.testimonial-role {
  display: block;
  font-size: 13px;
  color: var(--muted, #64748b); 
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-quote-mark {
  display: none;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

/* 轮播点未激活状态 - 改为浅灰色线 */
.tdot {
  width: 30px; 
  height: 2px;
  background: rgba(0, 0, 0, 0.15); 
  cursor: pointer;
  transition: background 0.3s ease;
}

/* 激活状态保持统一的品牌蓝 */
.tdot:hover,
.tdot.active {
  background: var(--brand-3, #0088ff) !important; 
}

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

@media (max-width: 960px) {
  .testimonial-slide {
    width: 100vw; 
  }
}

@media (max-width: 768px) {
  .proj-cards-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-text {
    font-size: 18px;
  }
  .testimonial-block::before,
  .testimonial-block::after {
    font-size: 120px;
  }
  .testimonial-block::before {
    top: -20px;
  }
  .testimonial-block::after {
    bottom: 0;
  }
}