/* ============================================
   应用案例列表页面样式 - 左右分栏布局
   ============================================ */

/* ============================================
   Hero Banner 模块
   ============================================ */
.case-hero {
  position: relative;
  width: 100%;
  height: 267px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.case-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #D0021B 0%, #8B0000 100%);
}

.case-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.case-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-hero__title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.case-hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.1em;
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
  background: #f8f8f8;
  padding: 16px 0;
}

.breadcrumb__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.breadcrumb__link {
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__separator {
  color: #999999;
}

.breadcrumb__current {
  color: var(--color-primary);
  font-weight: 500;
}

/* ============================================
   案例主体区域
   ============================================ */
.case-main {
  padding: 0;
  background: #ffffff;
  min-height: calc(100vh - 80px);
}

.case-main__container {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

/* ============================================
   左侧固定介绍区 - 品牌红色主题
   ============================================ */
.case-sidebar {
  flex: 0 0 260px;
  background: linear-gradient(180deg, #D0021B 0%, #a00015 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* 背景装饰 */
.case-sidebar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.case-sidebar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 100%);
  pointer-events: none;
}

.case-sidebar__inner {
  padding: 32px 24px;
  position: sticky;
  top: 80px;
  z-index: 1;
}

/* 页面标题 */
.case-sidebar__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
}

/* 简介文字 */
.case-sidebar__desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px 0;
}

/* 统计数据 */
.case-sidebar__stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.case-sidebar__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.case-sidebar__stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.case-sidebar__stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* 联系咨询 */
.case-sidebar__contact {
  margin-top: 0;
}

.case-sidebar__contact-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 14px 0;
}

.case-sidebar__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.case-sidebar__contact-btn:hover {
  background: #fff5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.case-sidebar__contact-btn i {
  font-size: 12px;
}

/* ============================================
   右侧案例列表区
   ============================================ */
.case-content {
  flex: 1;
  padding: 40px 50px 60px;
  background: #f8f8f8;
}

/* ============================================
   案例卡片网格
   ============================================ */
.case-list__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ============================================
   案例卡片
   ============================================ */
.case-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.case-item__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.case-item__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.case-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-item:hover .case-item__image img {
  transform: scale(1.06);
}

/* 悬停遮罩 */
.case-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-item:hover .case-item__overlay {
  opacity: 1;
}

.case-item__view {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.case-item:hover .case-item__view {
  transform: translateY(0);
}

.case-item__view i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.case-item:hover .case-item__view i {
  transform: translateX(4px);
}

.case-item__content {
  padding: 20px 24px 24px;
}

.case-item__title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  line-height: 1.5;
  margin: 0 0 12px 0;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-item:hover .case-item__title {
  color: var(--color-primary);
}

.case-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #999999;
}

.case-item__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-item__meta i {
  font-size: 11px;
  color: var(--color-primary);
}

/* ============================================
   分页
   ============================================ */
.case-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.case-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  font-size: 14px;
  color: #666666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.case-pagination__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.case-pagination__btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.case-pagination__btn--disabled:hover {
  border-color: #e5e5e5;
  color: #666666;
}

.case-pagination__info {
  font-size: 14px;
  color: #666666;
  font-weight: 500;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
  .case-sidebar {
    flex: 0 0 240px;
  }

  .case-sidebar__inner {
    padding: 28px 20px;
  }

  .case-sidebar__title {
    font-size: 20px;
  }

  .case-sidebar__stat-number {
    font-size: 24px;
  }

  .case-content {
    padding: 30px 40px 50px;
  }
}

@media (max-width: 960px) {
  .case-hero {
    height: 220px;
    padding-top: 60px;
  }

  .case-hero__title {
    font-size: 32px;
  }

  .case-main__container {
    flex-direction: column;
  }

  .case-sidebar {
    flex: none;
  }

  .case-sidebar__inner {
    padding: 28px 24px;
    position: relative;
    top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
  }

  .case-sidebar__title {
    width: 100%;
    font-size: 20px;
    margin-bottom: 8px;
  }

  .case-sidebar__desc {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
  }

  .case-sidebar__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    border: none;
    margin-bottom: 0;
  }

  .case-sidebar__stat-number {
    font-size: 22px;
  }

  .case-sidebar__contact {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .case-sidebar__contact-text {
    margin: 0;
  }

  .case-content {
    padding: 30px 24px 50px;
  }

  .case-list__grid {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .case-hero {
    height: 180px;
  }

  .case-hero__title {
    font-size: 26px;
  }

  .case-hero__subtitle {
    font-size: 14px;
  }

  .case-sidebar__inner {
    padding: 24px 20px;
  }

  .case-sidebar__title {
    font-size: 20px;
  }

  .case-sidebar__desc {
    font-size: 13px;
  }

  .case-sidebar__stats {
    flex-direction: column;
    gap: 16px;
  }

  .case-sidebar__stat {
    flex-direction: row;
    gap: 8px;
  }

  .case-sidebar__stat-number {
    font-size: 22px;
  }

  .case-content {
    padding: 24px 16px 40px;
  }

  .case-list__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-item__content {
    padding: 16px 20px 20px;
  }

  .case-item__title {
    font-size: 15px;
  }

  .case-item__meta {
    gap: 12px;
    font-size: 12px;
  }

  .case-pagination {
    margin-top: 30px;
  }

  .case-pagination__btn {
    width: 40px;
    height: 40px;
  }
}
