/* ========== 作品区块整体样式 ========== */
.works-section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

/* ========== 区块标题 ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 0 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #2d3436;
  position: relative;
  padding-left: 20px;
  animation: slideIn 0.6s ease-out;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
}

.view-more {
  color: #667eea;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(102, 126, 234, 0.1);
}

.view-more:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(5px);
}

/* ========== 作品网格布局 ========== */
.works-grid {
  animation: scaleIn 0.8s ease-out;
}

/* ========== 作品卡片 ========== */
.work-card {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.work-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========== 作品图片容器 ========== */
.work-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
  transform: scale(1.1);
}

/* ========== 预览遮罩层 ========== */
.work-preview {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.work-card:hover .work-preview {
  opacity: 1;
}

.preview-icon {
  font-size: 48px;
  transform: scale(0.5);
  transition: transform 0.3s ease;
}

.work-card:hover .preview-icon {
  transform: scale(1);
}

/* ========== 作品信息 ========== */
.work-info {
  padding: 20px;
  background: white;
}

.work-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.work-card:hover .work-title {
  color: #667eea;
}

/* ========== 作品元数据 ========== */
.work-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.work-designer {
  font-size: 13px;
  color: #636e72;
  font-weight: 500;
}

.work-level {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid;
}

.work-level-text {
  font-size: 12px;
  color: #b2bec3;
}

/* ========== 作品价格 ========== */
.work-price {
  font-size: 20px;
  font-weight: 700;
  color: #ff5a5a;
  display: flex;
  align-items: center;
  gap: 4px;
}

.work-price::before {
  content: '¥';
  font-size: 14px;
}

/* ========== 卡片延迟动画 ========== */
.work-card:nth-child(1) { animation-delay: 0.05s; }
.work-card:nth-child(2) { animation-delay: 0.1s; }
.work-card:nth-child(3) { animation-delay: 0.15s; }
.work-card:nth-child(4) { animation-delay: 0.2s; }
.work-card:nth-child(5) { animation-delay: 0.25s; }
.work-card:nth-child(6) { animation-delay: 0.3s; }
.work-card:nth-child(7) { animation-delay: 0.35s; }
.work-card:nth-child(8) { animation-delay: 0.4s; }
.work-card:nth-child(9) { animation-delay: 0.45s; }

/* ========== 加载状态 ========== */
.works-section .ant-spin {
  color: #667eea;
}

.works-section .ant-spin-text {
  color: #636e72;
  font-size: 14px;
  margin-top: 10px;
}

/* ========== 空状态 ========== */
.works-empty {
  text-align: center;
  padding: 60px 20px;
  color: #b2bec3;
}

.works-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.works-empty-text {
  font-size: 16px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .works-section {
    padding: 40px 15px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .work-image {
    height: 200px;
  }
  
  .work-title {
    font-size: 14px;
  }
  
  .work-price {
    font-size: 18px;
  }
}

/* ========== 暗黑模式 ========== */
@media (prefers-color-scheme: dark) {
  .work-card {
    background: #2d2d44;
  }
  
  .work-title {
    color: #e0e0e0;
  }
  
  .work-designer {
    color: #a0a0a0;
  }
  
  .work-card:hover .work-title {
    color: #667eea;
  }
}
