/* 客户案例页面样式 */

/* 客户案例横幅样式 */
.cases-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3178e6 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.cases-banner .banner-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cases-banner h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cases-banner p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

.banner-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: url(../images/wave-white.svg) repeat-x;
  background-size: contain;
}

/* 案例筛选器样式 */
.case-filters {
  background-color: white;
  padding: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.filter-title {
  margin-right: 30px;
}

.filter-title h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-color);
  font-weight: 600;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  padding: 8px 20px;
  background-color: #f5f7fa;
  border: none;
  border-radius: 30px;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #e9ecf1;
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

/* 案例展示区样式 */
.cases-showcase {
  padding: 80px 0;
  background-color: #f8fafc;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.case-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-item:hover .case-image img {
  transform: scale(1.1);
}

.case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  padding: 15px;
  transition: background 0.3s ease;
}

.case-item:hover .case-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.case-tag {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
  align-self: flex-start;
}

.case-link {
  width: 35px;
  height: 35px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.3s ease;
}

.case-item:hover .case-link {
  transform: translateY(0);
  opacity: 1;
}

.case-content {
  padding: 25px;
}

.case-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 600;
}

.case-stats {
  margin-bottom: 15px;
}

.case-metric {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
}

.case-metric i {
  margin-right: 5px;
}

.case-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 15px;
}

.btn-more {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.btn-more::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.btn-more:hover::after {
  width: 100%;
}

/* 精选案例详情样式 */
.featured-case-section {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.featured-case {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.case-header {
  background-color: #f8fafc;
  padding: 30px;
  border-bottom: 1px solid #e9ecf1;
}

.case-header h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.case-industry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.industry-tag {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.9rem;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 500;
}

.completion-date {
  font-size: 0.9rem;
  color: var(--text-light);
}

.case-body {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.case-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-image-wrapper img {
  width: 100%;
  display: block;
}

.case-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.case-details h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-color);
  position: relative;
  padding-left: 15px;
}

.case-details h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 18px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.client-info p,
.client-challenges p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

.client-challenges ul,
.solution-provided ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-challenges li,
.solution-provided li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-light);
}

.client-challenges li::before,
.solution-provided li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  line-height: 1;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.result-item {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.result-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.result-number span {
  font-size: 1.3rem;
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-color);
}

.client-testimonial {
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 25px;
  position: relative;
}

.quote-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  font-style: italic;
  margin: 0 0 15px 0;
  padding: 0;
  border: none;
}

.testimonial-author {
  text-align: right;
  font-size: 0.95rem;
}

.author-name {
  font-weight: 600;
  color: var(--text-color);
}

.author-position {
  color: var(--text-light);
}

/* CTA 部分样式 */
.case-cta {
  padding: 80px 0;
  background-color: #f8fafc;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.cta-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .filter-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-title {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .case-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
  }

  .cases-banner h1 {
    font-size: 2.5rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}
