/* ============================================
   Work Page V2 - 页面布局样式
   组件样式引用自 components.css
   ============================================ */

/* ============================================
   页面基础布局
   ============================================ */
.work-page-v2 {
  background: #f5f5f5;
}

.work-page-v2 .main-footer {
  display: none;
}

/* 页眉默认透明，不显示吸附背景 - 覆盖 header-v3.css */
.work-page-v2 .main-header {
  background: transparent !important;
}

.work-page-v2 .main-header::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 0 !important;
  z-index: -1 !important;
  transform-origin: top !important;
  transition: none !important;
}

.work-page-v2 .main-header.sticky::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 0 !important;
  z-index: -1 !important;
  transform-origin: top !important;
  transition: none !important;
}

/* 页眉容器透明 */
.work-page-v2 .header__container {
  background: transparent !important;
}

.work-page-v2 .work-main {
  position: relative;
  z-index: 2;
  background: #f5f5f5;
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 100vh;
}

/* ============================================
   内容容器 - 与页眉宽度一致
   ============================================ */
.work-content-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 50px;
}

/* iPad 适配 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .work-content-container {
    padding: 0 32px;
  }

  .work-section-header .section-header {
    padding: 0 32px;
  }

  .work-filter-wrapper {
    padding: 0 32px;
  }

  .work-cards-section {
    padding: 0 32px 48px;
  }

  .work-main {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  .work-content-container {
    padding: 0 24px;
  }
}

/* ============================================
   板块标题区域布局
   ============================================ */
.work-section-header {
  width: 100%;
  background: #f5f5f5;
  padding-bottom: 60px;
}

.work-section-header .section-header {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 50px;
}

/* 标题样式 - 与 Company 页面统一 */
.work-page-v2 .section-header-label {
  display: block;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  margin-bottom: 16px;
}

.work-page-v2 .section-header-title {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
  margin: 0;
}

@media (max-width: 768px) {
  .work-section-header .section-header {
    padding: 0 24px;
  }
  .work-section-header {
    padding-bottom: 40px;
  }
  .work-page-v2 .section-header-label {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .work-page-v2 .section-header-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .work-page-v2 .section-header-label {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .work-page-v2 .section-header-title {
    font-size: 24px;
  }
}

/* ============================================
   筛选器区域布局
   ============================================ */
.work-filter-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto 50px;
  padding: 0 50px;
}

@media (max-width: 768px) {
  .work-filter-wrapper {
    padding: 0 24px;
  }
}

/* ============================================
   项目卡片区域布局
   ============================================ */
.work-cards-section {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 50px 60px;
}

@media (max-width: 768px) {
  .work-cards-section {
    padding: 0 24px 40px;
  }
}

/* 空状态提示 */
.work-gallery__empty {
  display: none;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  font-size: 18px;
  color: #666;
  font-family: 'Noto Sans SC', sans-serif;
}

.work-gallery__empty.is-visible {
  display: block;
}

/* ============================================
   筛选动画
   ============================================ */
.card-project.is-hiding {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-project.is-showing {
  animation: cardFadeIn 0.4s ease forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
