/* ========== 案例详情页 ========== */

/* 面包屑导航 */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.breadcrumb-nav a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb-nav a:hover {
  color: var(--primary);
}
.breadcrumb-sep {
  color: #cbd5e1;
}
.breadcrumb-current {
  color: var(--dark);
  font-weight: 600;
}

/* 头部 Banner */
.detail-hero {
  background: linear-gradient(180deg, #F0F5FF 0%, #FFFFFF 50%, #F8FAFC 100%);
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
  border-radius: 50%;
}
.detail-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.04), transparent 70%);
  border-radius: 50%;
}
.detail-hero-content {
  position: relative;
  z-index: 2;
}
.detail-hero-title {
  color: var(--dark);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.detail-hero-desc {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 0;
}

/* 主体区域 */
.detail-main {
  padding-top: 60px;
}

/* 封面图 */
.detail-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  aspect-ratio: 16 / 8;
}
.detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-cover-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gradient);
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* 内容块 */
.detail-block {
  margin-bottom: 44px;
}
.detail-block-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  padding-bottom: 14px;
  margin-bottom: 20px;
  position: relative;
}
.detail-block-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
}
.detail-text {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 0;
}

/* 核心功能网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: all 0.3s ease;
}
.feature-item:hover {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.feature-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.feature-text h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 上一页 / 下一页 */
.detail-pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 28px;
  margin-top: 48px;
}
.pag-link {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  padding: 18px 22px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pag-link:hover {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.pag-label {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 500;
}
.pag-title {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 700;
}
.pag-link:hover .pag-title {
  color: var(--primary);
}

/* 侧边栏 */
.sidebar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}
.sidebar-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed #eef2f7;
}
.info-list li:last-child {
  border-bottom: none;
}
.info-label {
  color: var(--gray);
  font-size: 0.85rem;
}
.info-value {
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

/* 技术栈 */
.sidebar-card .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-card .tech-tag {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.12);
  transition: all 0.3s;
}
.sidebar-card .tech-tag:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

/* 咨询 CTA */
.sidebar-cta {
  background: var(--gradient);
  border: none;
  color: #fff;
}
.sidebar-cta .sidebar-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.sidebar-cta .sidebar-title::after {
  background: #fff;
}
.sidebar-cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.sidebar-cta .btn-primary {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 30px;
  font-weight: 700;
  padding: 12px 20px;
  transition: all 0.3s;
}
.sidebar-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========== 响应式 ========== */
@media (max-width: 991px) {
  .detail-hero {
    padding: 130px 0 50px;
  }
  .detail-hero-title {
    font-size: 1.9rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .detail-pagination {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .detail-cover {
    aspect-ratio: 16 / 10;
  }
  .detail-block-title {
    font-size: 1.2rem;
  }
  .detail-text {
    font-size: 0.95rem;
  }
}
