/* 案例详情页样式 */

/* 页面头部样式 */
.page-header {
  padding-top: calc(var(--header-height) + var(--spacing-xxl));
  padding-bottom: var(--spacing-xl);
  background: linear-gradient(to bottom, var(--dark-color), #0f3460);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/img/cases/header-bg-pattern.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1{
  color: white;
}

/* 面包屑导航样式 */
.breadcrumb-nav {
  background-color: var(--bg-muted);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav .breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-nav .breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.breadcrumb-nav .breadcrumb-item.active {
  color: var(--text-muted);
}

/* 案例详情区域 */
.case-details {
  padding: var(--spacing-xxl) 0;
}

/* 案例头部样式 */
.case-header .industry-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.case-header h1 {
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.case-meta {
  color: var(--text-secondary);
}

.case-meta i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* 案例内容样式 */
.case-content {
  margin-top: 2rem;
}

.case-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.case-content h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.case-content h4 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.case-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.case-content ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.case-content li {
  margin-bottom: 0.5rem;
}

/* 技术栈样式 */
.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background-color: rgba(var(--primary-rgb), 0.1);
  /* color: var(--text-light) !important; */
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

/* 核心功能样式 */
.feature-item {
  margin-bottom: 1.5rem;
}

/* 侧边栏样式 */
.sidebar-sticky {
  position: sticky;
  top: 4rem;
}

.sidebar-section {
  background-color: var(--bg-muted);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* 技术栈列表样式 */
.tech-stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.tech-item i {
  color: var(--primary-color);
  margin-right: 0.75rem;
}

/* 相关案例样式 */
.related-cases {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-case {
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-case h4 {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.related-case:hover h4 {
  color: var(--primary-color);
}

.related-case p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* 联系咨询样式 */
.sidebar-section.bg-primary {
  background-color: var(--primary-color);
  color: white;
}

.sidebar-section.bg-primary h3 {
  color: white;
}

.sidebar-section.bg-primary p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.sidebar-section.bg-primary .btn-outline-light {
  color: white;
  border-color: white;
  width: 100%;
  transition: all 0.2s ease;
}

.sidebar-section.bg-primary .btn-outline-light:hover {
  background-color: white;
  color: var(--primary-color);
}

/* 推荐案例样式 */
.recommended-cases {
  background-color: var(--bg-muted);
  padding: var(--spacing-xxl) 0;
}

.recommended-cases h2 {
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  text-align: center;
  font-weight: 700;
}

.case-card {
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.case-card-body {
  padding: 1.25rem;
}

.case-card-body .industry-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.case-card-body .industry-tag.bg-primary {
  background-color: var(--primary-color);
  color: white;
}

.case-card-body .industry-tag.bg-info {
  background-color: var(--info-color);
  color: white;
}

.case-card-body .industry-tag.bg-success {
  background-color: var(--success-color);
  color: white;
}

.case-card-body h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.case-card-body p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.case-card-body a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.case-card-body a:hover {
  color: var(--primary-dark);
}

.case-card-body a i {
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

/* 返回顶部按钮样式 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary-color);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .case-details {
    padding: var(--spacing-xl) 0;
  }
  
  .case-header h1 {
    font-size: 1.5rem;
  }
  
  .case-content h2 {
    font-size: 1.375rem;
  }
  
  .sidebar-sticky {
    position: static;
    margin-top: 2rem;
  }
  
  .recommended-cases {
    padding: var(--spacing-xl) 0;
  }
  
  .recommended-cases h2 {
    font-size: 1.5rem;
  }
  
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Government Data Visualization Page Specific Styles */

/* Case Detail Section */
.case-detail {
  padding: var(--spacing-xxl) 0;
}

/* Case Sections */
.case-section {
  margin-bottom: var(--spacing-xxl);
}

.case-section h2 {
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.case-section h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.case-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Industry Tags */
.industry-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
}

.industry-tag.bg-primary {
  background-color: var(--primary-color);
  color: white;
}

.industry-tag.bg-gray-700 {
  background-color: #343a40;
  color: white;
}

/* Challenge Icons */
.challenge-icon {
  background-color: var(--primary-color);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Challenge List Items */
.case-section ul.list-unstyled li {
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.case-section ul.list-unstyled li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Solution Steps */
.solution-step {
  margin-bottom: 2rem;
}

.solution-step h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.solution-step ul {
  padding-left: 0;
}

.solution-step li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.solution-step li i {
  color: var(--primary-color);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

/* Project Results Section */
.case-section .bg-primary.bg-opacity-5 {
  background-color: rgba(var(--primary-rgb), 0.05);
  padding: 2rem;
  border-radius: 0.5rem;
}

.case-section .bg-primary.bg-opacity-5 li {
  margin-bottom: 1rem;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.case-section .bg-primary.bg-opacity-5 li strong {
  color: var(--text-primary);
}

/* Case Info Sidebar */
.case-info {
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.case-info h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.case-info ul {
  padding-left: 0;
}

.case-info li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.case-info li span:first-child {
  color: var(--text-muted);
  width: 40%;
}

.case-info li span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* Case Tech Sidebar */
.case-tech {
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.case-tech h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background-color: var(--bg-muted);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Related Cases Sidebar */
.related-cases {
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.related-cases h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.related-case-item {
  margin-bottom: 1rem;
}

.related-case-item a {
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

.related-case-item h4 {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.related-case-item h4.hover:text-primary:hover {
  color: var(--primary-color);
}

.related-case-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Case Consultation Section */
.case-consult {
  background-color: rgba(var(--primary-rgb), 0.05);
  padding: var(--spacing-xxl) 0;
}

.case-consult h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.case-consult p {
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  line-height: 1.7;
}

.case-consult .btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.case-consult .btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .case-detail .row {
    flex-direction: column;
  }
  
  .case-detail .col-lg-4 {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .case-detail {
    padding: var(--spacing-xl) 0;
  }
  
  .case-section h2 {
    font-size: 1.5rem;
  }
  
  .case-section .bg-primary.bg-opacity-5 {
    padding: 1.5rem;
  }
  
  .case-consult {
    padding: var(--spacing-xl) 0;
  }
  
  .case-consult h2 {
    font-size: 1.75rem;
  }
}