/* 案例详情页样式 */

/* 页面标题区域 */
.page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 180px 0 80px;
  color: #fff;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #e94560;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* 案例详情主体 */
.case-detail-section {
  padding: 60px 0;
  background: #f8f9fa;
}

/* 案例头部 */
.case-header {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.case-header-content {
  padding: 40px;
  text-align: center;
}

.case-category-badge {
  display: inline-block;
  background: #e94560;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.case-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.case-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 25px;
}

.case-meta-header {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 0.95rem;
}

.meta-item i {
  color: #e94560;
}

.case-header-image {
  height: 400px;
}

.case-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 案例数据概览 */
.case-overview {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.overview-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.overview-icon {
  width: 60px;
  height: 60px;
  background: #e94560;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overview-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.overview-data {
  display: flex;
  flex-direction: column;
}

.overview-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
}

.overview-label {
  font-size: 0.9rem;
  color: #6c757d;
}

/* 案例内容区 */
.case-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.case-main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 内容区块 */
.content-section {
  background: #fff;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: #e94560;
}

.section-body p {
  color: #495057;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* 解决方案列表 */
.solution-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.solution-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
}

.solution-icon {
  width: 50px;
  height: 50px;
  background: #e94560;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-icon i {
  font-size: 1.3rem;
  color: #fff;
}

.solution-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.solution-content p {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 图片画廊 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 250px 200px;
  gap: 15px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: #fff;
}

/* 使用产品 */
.products-used {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 120px;
  margin-bottom: 15px;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 5px;
}

.product-info p {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.product-qty {
  display: inline-block;
  padding: 4px 12px;
  background: #e94560;
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* 客户评价 */
.testimonial-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
}

.testimonial-content {
  position: relative;
  margin-bottom: 25px;
}

.quote-icon {
  font-size: 2rem;
  color: #e94560;
  opacity: 0.3;
  margin-bottom: 10px;
}

.testimonial-content p {
  font-size: 1.05rem;
  color: #495057;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.author-name {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 1.05rem;
}

.author-title {
  color: #6c757d;
  font-size: 0.9rem;
}

/* 侧边栏 */
.case-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e94560;
}

/* 案例信息 */
.case-info-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: #6c757d;
  font-size: 0.9rem;
}

.info-value {
  color: #1a1a2e;
  font-weight: 500;
  font-size: 0.9rem;
}

/* 相关案例 */
.related-cases {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-case-item {
  display: flex;
  gap: 15px;
}

.case-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.case-info h4 {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.case-info h4 a {
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.3s;
}

.case-info h4 a:hover {
  color: #e94560;
}

.case-date {
  font-size: 0.8rem;
  color: #6c757d;
}

/* 联系widget */
.contact-widget {
  text-align: center;
}

.contact-desc {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #e94560;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-contact:hover {
  background: #d63d56;
  transform: translateY(-2px);
}

/* 案例导航 */
.case-nav {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

.case-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-prev,
.nav-next {
  flex: 1;
  padding: 25px 30px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  max-width: 350px;
}

.nav-prev:hover,
.nav-next:hover {
  background: #e94560;
}

.nav-prev:hover .nav-label,
.nav-prev:hover .nav-title,
.nav-next:hover .nav-label,
.nav-next:hover .nav-title {
  color: #fff;
}

.nav-next {
  text-align: right;
}

.nav-label {
  display: block;
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.nav-title {
  display: block;
  color: #1a1a2e;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  transition: color 0.3s;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  border: 2px solid #e94560;
  border-radius: 8px;
  color: #e94560;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-back:hover {
  background: #e94560;
  color: #fff;
}

/* 图片放大模态框 */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  background: #e94560;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .case-content-wrapper {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-used {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .case-content-wrapper {
    grid-template-columns: 1fr;
  }

  .case-sidebar {
    order: -1;
  }

  .case-meta-header {
    flex-direction: column;
    gap: 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
    height: 300px;
  }

  .case-nav-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .nav-prev,
  .nav-next {
    max-width: 100%;
  }

  .nav-next {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }

  .case-title {
    font-size: 1.6rem;
  }

  .case-header-image {
    height: 250px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 25px;
  }

  .solution-item {
    flex-direction: column;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: span 1;
    height: 250px;
  }

  .products-used {
    grid-template-columns: 1fr;
  }
}
